Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XVariation.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 double r = Math.Sqrt(x * x + y * y);
24 double a = Math.Atan2(x, y);
25 double p0 = Math.Sin(a + r);
26 double p1 = Math.Cos(a - r);
27 p0 = p0 * p0 * p0;
28 p1 = p1 * p1 * p1;
29 x = r * (p0 + p1);
30 y = r * (p0 - p1);
31 }
32
36 public override string FunctionName => nameof(XVariation);
37 }
38}
Class managing a script expression.
Definition: Expression.cs:39
override void Operate(ref double x, ref double y)
TODO
Definition: XVariation.cs:21
XVariation(int Start, int Length, Expression Expression)
TODO
Definition: XVariation.cs:13
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92