Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HorseShoeVariation.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) + 1e-6;
24 double x2 = (x - y) * (x + y) / r;
25 y = 2 * x * y / r;
26 x = x2;
27 }
28
32 public override string FunctionName => nameof(HorseShoeVariation);
33 }
34}
Class managing a script expression.
Definition: Expression.cs:39
override void Operate(ref double x, ref double y)
TODO
HorseShoeVariation(int Start, int Length, Expression Expression)
TODO
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92