Ejemplo n.º 1
0
 public static tfloat EIOSine(tfloat x) => E05.Sub(E05.Mul(Cos(pi.Mul(x))));
Ejemplo n.º 2
0
 private static SyncPattern _FArrow(ExBPY indexer, ExBPY n, ExBPY xstep, ExBPY ystep, GenCtxProperty[] props,
                                    GCXU <VTP> path, string?poolSuffix, string?locSave, string?dirSave, params SyncPattern[] extraSp)
 {
     return(GuideEmpty(poolSuffix, indexer, AutoSaveV2(locSave ??= V2Key, dirSave ??= V2Key),
                       AutoSaveF, path, extraSp.Append(
                           GSRepeat2(GCXF <float>(x => n(x).Mul(n(x).Add(E1)).Div(E2)), RV2Zero, new[] {
         PreLoop(new GCRule[] {
             new GCRule <float>(ExType.Float, xi, GCOperator.Assign, GCXF(x => Floor(EN05.Add(
                                                                                         Sqrt(E025.Add(E2.Mul(x.t)))
                                                                                         )))),
             new GCRule <float>(ExType.Float, yi, GCOperator.Assign, GCXF(x => Sub(T()(x), E05.Mul(
                                                                                       Sqr(rxi(x)).Add(E2.Mul(rxi(x)))))
                                                                          ))
         })
     }.Concat(props).ToArray(), new [] {
         DS(HV2(locSave), HV2(dirSave), P(), Parametrics.PXY(
                x => EN1.Mul(xstep(x)).Mul(rxi(x)),
                x => ystep(x).Mul(ryi(x))
                ))
     })
                           ).ToArray()));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Convert a value 1,-1 to 1,0.
 /// </summary>
 public static tfloat PMZ1(tfloat x) => E05.Add(E05.Mul(x));