Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
zTanHVariation.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 Mod = Math.Exp(x);
24 double zr = Mod * (Math.Cos(y));
25 double zi = Mod * (Math.Sin(y));
26
27 Mod = Math.Exp(-x);
28 double zr2 = Mod * Math.Cos(-y);
29 double zi2 = Mod * Math.Sin(-y);
30
31 double sinr = zr - zr2;
32 double sini = zi - zi2;
33
34 double cosr = zr + zr2;
35 double cosi = zi + zi2;
36
37 double d = 1.0 / (cosr * cosr + cosi * cosi);
38
39 x = (sinr * cosr + sini * cosi) * d;
40 y = (sini * cosr - sinr * cosi) * d;
41 }
42
46 public override string FunctionName => nameof(ZTanHVariation);
47 }
48}
Class managing a script expression.
Definition: Expression.cs:39
override void Operate(ref double x, ref double y)
TODO
ZTanHVariation(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