AngouriMath
Create
Method with 8 overloads
Create(PeterO.Numbers.EDecimal,PeterO.Numbers.EDecimal)
Summary
Parameter "re"
Parameter "im"
Returns
The resulting ComplexExample
using System; using System.Numerics; using AngouriMath; using PeterO.Numbers; using static AngouriMath.MathS.Numbers; using static AngouriMath.MathS; Entity a1 = 5; Entity a2 = "5"; Entity a3 = new Complex(5.5, 6.5); Entity a4 = 6.5m; Entity a5 = 6.5; Entity a6 = 6.5f; Entity a7 = 5.6 + 3 * i; Entity a8 = EInteger.One; Entity a9 = ERational.One; Entity a10 = pi; Console.WriteLine("---------------"); var n0 = Create(0); var n1 = Create(0L); var n2 = Create(new Complex(5.5, 4.75)); var n3 = Create(EInteger.One); var n4 = CreateRational(4, 5); var n5 = Create(ERational.One); var n6 = Create(5.5m); var n7 = Create(5.5); var n8 = Create(5.5m, 6.5m); Console.WriteLine("---------------"); float i0 = (float)FromString("1 + 5").EvalNumerical(); double i1 = (double)FromString("1 + 5").EvalNumerical(); int i2 = (int)FromString("1 + 5").EvalNumerical(); long i3 = (long)FromString("1 + 5").EvalNumerical(); short i4 = (short)FromString("1 + 5").EvalNumerical(); BigInteger i5 = (BigInteger)FromString("1 + 5").EvalNumerical(); Complex i6 = (Complex)FromString("1 + 5").EvalNumerical(); EInteger i7 = ((Entity.Number.Integer)FromString("1 + 5").EvalNumerical()).EInteger; ERational i8 = ((Entity.Number.Rational)FromString("1 + 5").EvalNumerical()).ERational; EDecimal i9 = ((Entity.Number.Real)FromString("1 + 5").EvalNumerical()).EDecimal;
Create(PeterO.Numbers.EDecimal)
Summary
Parameter "value"
A value of type EDecimalReturns
The resulting RealExample
using System; using System.Numerics; using AngouriMath; using PeterO.Numbers; using static AngouriMath.MathS.Numbers; using static AngouriMath.MathS; Entity a1 = 5; Entity a2 = "5"; Entity a3 = new Complex(5.5, 6.5); Entity a4 = 6.5m; Entity a5 = 6.5; Entity a6 = 6.5f; Entity a7 = 5.6 + 3 * i; Entity a8 = EInteger.One; Entity a9 = ERational.One; Entity a10 = pi; Console.WriteLine("---------------"); var n0 = Create(0); var n1 = Create(0L); var n2 = Create(new Complex(5.5, 4.75)); var n3 = Create(EInteger.One); var n4 = CreateRational(4, 5); var n5 = Create(ERational.One); var n6 = Create(5.5m); var n7 = Create(5.5); var n8 = Create(5.5m, 6.5m); Console.WriteLine("---------------"); float i0 = (float)FromString("1 + 5").EvalNumerical(); double i1 = (double)FromString("1 + 5").EvalNumerical(); int i2 = (int)FromString("1 + 5").EvalNumerical(); long i3 = (long)FromString("1 + 5").EvalNumerical(); short i4 = (short)FromString("1 + 5").EvalNumerical(); BigInteger i5 = (BigInteger)FromString("1 + 5").EvalNumerical(); Complex i6 = (Complex)FromString("1 + 5").EvalNumerical(); EInteger i7 = ((Entity.Number.Integer)FromString("1 + 5").EvalNumerical()).EInteger; ERational i8 = ((Entity.Number.Rational)FromString("1 + 5").EvalNumerical()).ERational; EDecimal i9 = ((Entity.Number.Real)FromString("1 + 5").EvalNumerical()).EDecimal;
Create(PeterO.Numbers.EInteger)
Summary
Parameter "value"
A value of type EIntegerReturns
The resulting IntegerExample
using System; using System.Numerics; using AngouriMath; using PeterO.Numbers; using static AngouriMath.MathS.Numbers; using static AngouriMath.MathS; Entity a1 = 5; Entity a2 = "5"; Entity a3 = new Complex(5.5, 6.5); Entity a4 = 6.5m; Entity a5 = 6.5; Entity a6 = 6.5f; Entity a7 = 5.6 + 3 * i; Entity a8 = EInteger.One; Entity a9 = ERational.One; Entity a10 = pi; Console.WriteLine("---------------"); var n0 = Create(0); var n1 = Create(0L); var n2 = Create(new Complex(5.5, 4.75)); var n3 = Create(EInteger.One); var n4 = CreateRational(4, 5); var n5 = Create(ERational.One); var n6 = Create(5.5m); var n7 = Create(5.5); var n8 = Create(5.5m, 6.5m); Console.WriteLine("---------------"); float i0 = (float)FromString("1 + 5").EvalNumerical(); double i1 = (double)FromString("1 + 5").EvalNumerical(); int i2 = (int)FromString("1 + 5").EvalNumerical(); long i3 = (long)FromString("1 + 5").EvalNumerical(); short i4 = (short)FromString("1 + 5").EvalNumerical(); BigInteger i5 = (BigInteger)FromString("1 + 5").EvalNumerical(); Complex i6 = (Complex)FromString("1 + 5").EvalNumerical(); EInteger i7 = ((Entity.Number.Integer)FromString("1 + 5").EvalNumerical()).EInteger; ERational i8 = ((Entity.Number.Rational)FromString("1 + 5").EvalNumerical()).ERational; EDecimal i9 = ((Entity.Number.Real)FromString("1 + 5").EvalNumerical()).EDecimal;
Create(PeterO.Numbers.ERational)
Summary
Parameter "rational"
A value of type ERationalReturns
The resulting RationalExample
using System; using System.Numerics; using AngouriMath; using PeterO.Numbers; using static AngouriMath.MathS.Numbers; using static AngouriMath.MathS; Entity a1 = 5; Entity a2 = "5"; Entity a3 = new Complex(5.5, 6.5); Entity a4 = 6.5m; Entity a5 = 6.5; Entity a6 = 6.5f; Entity a7 = 5.6 + 3 * i; Entity a8 = EInteger.One; Entity a9 = ERational.One; Entity a10 = pi; Console.WriteLine("---------------"); var n0 = Create(0); var n1 = Create(0L); var n2 = Create(new Complex(5.5, 4.75)); var n3 = Create(EInteger.One); var n4 = CreateRational(4, 5); var n5 = Create(ERational.One); var n6 = Create(5.5m); var n7 = Create(5.5); var n8 = Create(5.5m, 6.5m); Console.WriteLine("---------------"); float i0 = (float)FromString("1 + 5").EvalNumerical(); double i1 = (double)FromString("1 + 5").EvalNumerical(); int i2 = (int)FromString("1 + 5").EvalNumerical(); long i3 = (long)FromString("1 + 5").EvalNumerical(); short i4 = (short)FromString("1 + 5").EvalNumerical(); BigInteger i5 = (BigInteger)FromString("1 + 5").EvalNumerical(); Complex i6 = (Complex)FromString("1 + 5").EvalNumerical(); EInteger i7 = ((Entity.Number.Integer)FromString("1 + 5").EvalNumerical()).EInteger; ERational i8 = ((Entity.Number.Rational)FromString("1 + 5").EvalNumerical()).ERational; EDecimal i9 = ((Entity.Number.Real)FromString("1 + 5").EvalNumerical()).EDecimal;
Create(System.Double)
Summary
Creates an instance of Real from a DoubleParameter "value"
A value of type Double (64-bit floating-point number)Returns
The resulting RealExample
using System; using System.Numerics; using AngouriMath; using PeterO.Numbers; using static AngouriMath.MathS.Numbers; using static AngouriMath.MathS; Entity a1 = 5; Entity a2 = "5"; Entity a3 = new Complex(5.5, 6.5); Entity a4 = 6.5m; Entity a5 = 6.5; Entity a6 = 6.5f; Entity a7 = 5.6 + 3 * i; Entity a8 = EInteger.One; Entity a9 = ERational.One; Entity a10 = pi; Console.WriteLine("---------------"); var n0 = Create(0); var n1 = Create(0L); var n2 = Create(new Complex(5.5, 4.75)); var n3 = Create(EInteger.One); var n4 = CreateRational(4, 5); var n5 = Create(ERational.One); var n6 = Create(5.5m); var n7 = Create(5.5); var n8 = Create(5.5m, 6.5m); Console.WriteLine("---------------"); float i0 = (float)FromString("1 + 5").EvalNumerical(); double i1 = (double)FromString("1 + 5").EvalNumerical(); int i2 = (int)FromString("1 + 5").EvalNumerical(); long i3 = (long)FromString("1 + 5").EvalNumerical(); short i4 = (short)FromString("1 + 5").EvalNumerical(); BigInteger i5 = (BigInteger)FromString("1 + 5").EvalNumerical(); Complex i6 = (Complex)FromString("1 + 5").EvalNumerical(); EInteger i7 = ((Entity.Number.Integer)FromString("1 + 5").EvalNumerical()).EInteger; ERational i8 = ((Entity.Number.Rational)FromString("1 + 5").EvalNumerical()).ERational; EDecimal i9 = ((Entity.Number.Real)FromString("1 + 5").EvalNumerical()).EDecimal;
Create(System.Int32)
Summary
Creates an instance of Integer from an Int32Parameter "value"
A value of type Int32 (signed 32-bit integer)Returns
The resulting IntegerExample
using System; using System.Numerics; using AngouriMath; using PeterO.Numbers; using static AngouriMath.MathS.Numbers; using static AngouriMath.MathS; Entity a1 = 5; Entity a2 = "5"; Entity a3 = new Complex(5.5, 6.5); Entity a4 = 6.5m; Entity a5 = 6.5; Entity a6 = 6.5f; Entity a7 = 5.6 + 3 * i; Entity a8 = EInteger.One; Entity a9 = ERational.One; Entity a10 = pi; Console.WriteLine("---------------"); var n0 = Create(0); var n1 = Create(0L); var n2 = Create(new Complex(5.5, 4.75)); var n3 = Create(EInteger.One); var n4 = CreateRational(4, 5); var n5 = Create(ERational.One); var n6 = Create(5.5m); var n7 = Create(5.5); var n8 = Create(5.5m, 6.5m); Console.WriteLine("---------------"); float i0 = (float)FromString("1 + 5").EvalNumerical(); double i1 = (double)FromString("1 + 5").EvalNumerical(); int i2 = (int)FromString("1 + 5").EvalNumerical(); long i3 = (long)FromString("1 + 5").EvalNumerical(); short i4 = (short)FromString("1 + 5").EvalNumerical(); BigInteger i5 = (BigInteger)FromString("1 + 5").EvalNumerical(); Complex i6 = (Complex)FromString("1 + 5").EvalNumerical(); EInteger i7 = ((Entity.Number.Integer)FromString("1 + 5").EvalNumerical()).EInteger; ERational i8 = ((Entity.Number.Rational)FromString("1 + 5").EvalNumerical()).ERational; EDecimal i9 = ((Entity.Number.Real)FromString("1 + 5").EvalNumerical()).EDecimal;
Create(System.Int64)
Summary
Creates an instance of Integer from a Int64Parameter "value"
A value of type Int64 (signed 64-bit integer)Returns
The resulting IntegerExample
using System; using System.Numerics; using AngouriMath; using PeterO.Numbers; using static AngouriMath.MathS.Numbers; using static AngouriMath.MathS; Entity a1 = 5; Entity a2 = "5"; Entity a3 = new Complex(5.5, 6.5); Entity a4 = 6.5m; Entity a5 = 6.5; Entity a6 = 6.5f; Entity a7 = 5.6 + 3 * i; Entity a8 = EInteger.One; Entity a9 = ERational.One; Entity a10 = pi; Console.WriteLine("---------------"); var n0 = Create(0); var n1 = Create(0L); var n2 = Create(new Complex(5.5, 4.75)); var n3 = Create(EInteger.One); var n4 = CreateRational(4, 5); var n5 = Create(ERational.One); var n6 = Create(5.5m); var n7 = Create(5.5); var n8 = Create(5.5m, 6.5m); Console.WriteLine("---------------"); float i0 = (float)FromString("1 + 5").EvalNumerical(); double i1 = (double)FromString("1 + 5").EvalNumerical(); int i2 = (int)FromString("1 + 5").EvalNumerical(); long i3 = (long)FromString("1 + 5").EvalNumerical(); short i4 = (short)FromString("1 + 5").EvalNumerical(); BigInteger i5 = (BigInteger)FromString("1 + 5").EvalNumerical(); Complex i6 = (Complex)FromString("1 + 5").EvalNumerical(); EInteger i7 = ((Entity.Number.Integer)FromString("1 + 5").EvalNumerical()).EInteger; ERational i8 = ((Entity.Number.Rational)FromString("1 + 5").EvalNumerical()).ERational; EDecimal i9 = ((Entity.Number.Real)FromString("1 + 5").EvalNumerical()).EDecimal;
Create(System.Numerics.Complex)
Summary
Creates an instance of Complex from a ComplexParameter "value"
A value of type ComplexReturns
The resulting ComplexExample
using System; using System.Numerics; using AngouriMath; using PeterO.Numbers; using static AngouriMath.MathS.Numbers; using static AngouriMath.MathS; Entity a1 = 5; Entity a2 = "5"; Entity a3 = new Complex(5.5, 6.5); Entity a4 = 6.5m; Entity a5 = 6.5; Entity a6 = 6.5f; Entity a7 = 5.6 + 3 * i; Entity a8 = EInteger.One; Entity a9 = ERational.One; Entity a10 = pi; Console.WriteLine("---------------"); var n0 = Create(0); var n1 = Create(0L); var n2 = Create(new Complex(5.5, 4.75)); var n3 = Create(EInteger.One); var n4 = CreateRational(4, 5); var n5 = Create(ERational.One); var n6 = Create(5.5m); var n7 = Create(5.5); var n8 = Create(5.5m, 6.5m); Console.WriteLine("---------------"); float i0 = (float)FromString("1 + 5").EvalNumerical(); double i1 = (double)FromString("1 + 5").EvalNumerical(); int i2 = (int)FromString("1 + 5").EvalNumerical(); long i3 = (long)FromString("1 + 5").EvalNumerical(); short i4 = (short)FromString("1 + 5").EvalNumerical(); BigInteger i5 = (BigInteger)FromString("1 + 5").EvalNumerical(); Complex i6 = (Complex)FromString("1 + 5").EvalNumerical(); EInteger i7 = ((Entity.Number.Integer)FromString("1 + 5").EvalNumerical()).EInteger; ERational i8 = ((Entity.Number.Rational)FromString("1 + 5").EvalNumerical()).ERational; EDecimal i9 = ((Entity.Number.Real)FromString("1 + 5").EvalNumerical()).EDecimal;
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online