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
Unhandled exception. System.TypeInitializationException: The type initializer for 'System.Data.Entity.DbContext' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Z.EntityFramework.Classic.EntityFrameworkManager' threw an exception.
---> System.TypeInitializationException: The type initializer for '' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Z.Expressions.CompilerManager..cctor()
at Z.Expressions.CompilerManager.LoadEntityFrameworkClassicConfiguration()
at Z.Expressions.ExceptionMessage.ThrowLicenseException()
at ..cctor()
--- End of inner exception stack trace ---
at .()
at Z.EntityFramework.Classic.EntityFrameworkManager..cctor()
--- End of inner exception stack trace ---
at Z.EntityFramework.Classic.EntityFrameworkManager.Initialize()
at System.Data.Entity.DbContext..cctor()
--- End of inner exception stack trace ---
at System.Data.Entity.DbContext..ctor(String nameOrConnectionString)
at Program.EntityContext..ctor()
at Program.GenerateData()
at Program.Main()
Command terminated by signal 6
---> System.TypeInitializationException: The type initializer for 'Z.EntityFramework.Classic.EntityFrameworkManager' threw an exception.
---> System.TypeInitializationException: The type initializer for '' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Configuration.ConfigurationManager, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Z.Expressions.CompilerManager..cctor()
at Z.Expressions.CompilerManager.LoadEntityFrameworkClassicConfiguration()
at Z.Expressions.ExceptionMessage.ThrowLicenseException()
at ..cctor()
--- End of inner exception stack trace ---
at .()
at Z.EntityFramework.Classic.EntityFrameworkManager..cctor()
--- End of inner exception stack trace ---
at Z.EntityFramework.Classic.EntityFrameworkManager.Initialize()
at System.Data.Entity.DbContext..cctor()
--- End of inner exception stack trace ---
at System.Data.Entity.DbContext..ctor(String nameOrConnectionString)
at Program.EntityContext..ctor()
at Program.GenerateData()
at Program.Main()
Command terminated by signal 6