AngouriMath

Navigation

← Back to list of members

Signum​(AngouriMath.​Entity)

 Method (no overloads)

Summary

https://en.wikipedia.org/wiki/Sign_function

Parameter "a"

Argument node of which Signum function will be taken

Returns

Signum node

Example

using System;
using static AngouriMath.MathS;
Console.WriteLine(Signum(-5));
Console.WriteLine(Signum(-5).Evaled);
Console.WriteLine(Signum(0));
Console.WriteLine(Signum(0).Evaled);
Console.WriteLine(Signum(5));
Console.WriteLine(Signum(5).Evaled);
Console.WriteLine(Signum(4 + 3 * i));
Console.WriteLine(Signum(4 + 3 * i).Evaled);

Prints
sgn(-5)
-1
sgn(0)
0
sgn(5)
1
sgn(4 + 3i)
4/5 + (3/5)i

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online