Skip to content

zachdeibert/language-integrated-algebra

Repository files navigation

C# Algebra Library

Build Status

This library allows you to do algebra in your code without having to evaluate it manually.

For example,

using System;
using LINA;
using LINA.Primitives;

namespace AlgebraTest {
    class MainClass {
        public static void IgnoreResult(params object[] o) {
        }
        
        public static void Main(string[] args) {
            DependentVariable<AlgebrableInt> x = new DependentVariable<AlgebrableInt>();
            IgnoreResult(x + 2 == 4);
            Console.WriteLine(x.Value); // Prints 2
        }
    }
}

About

A c# library that makes algebra easier to do

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages