59
WriteLine("x ^ y + sqrt(x) + integral(sqrt(x) / a, x, 1) + derivative(sqrt(x) / a, x, 1) + limit(sqrt(x) / a, x, +oo)".Latexise());
1
// AngouriMath 1.3.0-preview.3
2
using AngouriMath; using AngouriMath.Extensions; using static System.Console; using static AngouriMath.MathS;
3
4
// Hello world in AM
5
WriteLine("Alright, let's start from a hello world");
6
WriteLine("2 + 3 is " + "2 + 3".EvalNumerical().Stringize());
7
WriteLine();
8
9
// Simplify
10
WriteLine("x + 3 + 4 + x + 2x + 23 + a".Simplify().Stringize());
11
WriteLine();
12
13
// Build expressions
14
var x = Var("x");
15
var expr = Sin(x) + Sqrt(x) + Integral(Sin(Sin(x)), x);
16
WriteLine(expr.Stringize());
17
WriteLine();
18
19
// Derive
20
WriteLine(expr.Differentiate(x).Simplify().Stringize());
21
WriteLine();
22
23
// Solve a simple equation
24
WriteLine("x2 = 3".Solve("x").Stringize());
Cached Result
10
25
Any key to continue
>
25
Any key to continue