Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
zSqrtVariation.cs
1using System;
2
4{
9 {
14 : base(Start, Length, Expression)
15 {
16 }
17
21 public override void Operate(ref double x, ref double y)
22 {
23 // (x+iy)^0.5
24 double argz = Math.Atan2(y, x);
25 double amp = Math.Pow(x * x + y * y, 0.25);
26 double phi = 0.5 * argz;
27
28 x = amp * Math.Cos(phi);
29 y = amp * Math.Sin(phi);
30 }
31
35 public override string FunctionName => nameof(ZSqrtVariation);
36 }
37}
Class managing a script expression.
Definition: Expression.cs:39
ZSqrtVariation(int Start, int Length, Expression Expression)
TODO
override void Operate(ref double x, ref double y)
TODO
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92