Skip to content

Latest commit

 

History

History
157 lines (150 loc) · 5.31 KB

Atc.Math.md

File metadata and controls

157 lines (150 loc) · 5.31 KB

Atc.Math


MathEx

MathEx

public static class MathEx

Static Methods

Ceiling

int Ceiling(int x, int period)

Summary: Ceilings the specified x.

Parameters:
     x  -  The x.
     period  -  The period.

Ceiling

Func<int, int> Ceiling(Func<int, int> f, int period)

Summary: Ceilings the specified x.

Parameters:
     x  -  The x.
     period  -  The period.

Compose

Func<int, int> Compose(Func<int, int> f, Func<int, int> g)

Summary: Composes the specified f.

Parameters:
     f  -  The f.
     g  -  The g.

Floor

int Floor(int x, int period)

Summary: Floors the specified x.

Parameters:
     x  -  The x.
     period  -  The period.

Floor

Func<int, int> Floor(Func<int, int> f, int period)

Summary: Floors the specified x.

Parameters:
     x  -  The x.
     period  -  The period.

GetDivisorsLessThanOrEqual

IEnumerable<int> GetDivisorsLessThanOrEqual(int value, int max)

Summary: Gets divisors for value that is less than or equal to the specified max value.

Parameters:
     value  -  The value to get divisors of.
     max  -  The maximum divisor threshold.

GreatestCommonDivisor

int GreatestCommonDivisor(int v1, int v2)

Summary: Find greatest common divisor.

Parameters:
     v1  -  The v1.
     v2  -  The v2.

GreatestCommonDivisor

double GreatestCommonDivisor(double v1, double v2)

Summary: Find greatest common divisor.

Parameters:
     v1  -  The v1.
     v2  -  The v2.

Hysteron

int Hysteron(ref int state, int x, int width = 1, int height = 1)

Summary: Associates the input with the result of an operator that takes the path of a loop, and its next state depends on its past state.

Parameters:
     state  -  Represents the state of the operator.
     x  -  Represents the input of the operator
     width  -  Represents the width of the loop
     height  -  Represents the height of the loop

Modulate

Func<int, int> Modulate(Func<int, int> carrier, Func<int, int> cellFunction, int period)

Summary: Modulates the specified carrier.

Parameters:
     carrier  -  The carrier.
     cellFunction  -  The cell function.
     period  -  The period.

Multiply

Func<int, int> Multiply(Func<int, int> f, Func<int, int> g)

Summary: Multiplies the specified f.

Parameters:
     f  -  The f.
     g  -  The g.

Periodic

Func<int, int> Periodic(Func<int, int> f, int period)

Summary: Periodics the specified f.

Parameters:
     f  -  The f.
     period  -  The period.

Rect

int Rect(int x, int width = 1, int height = 1)

Summary: Rects the specified x.

Parameters:
     x  -  The x.
     width  -  The width.
     height  -  The height.

SawTooth

int SawTooth(int x, int period)

Summary: Saws the tooth.

Parameters:
     x  -  The x.
     period  -  The period.

Step

int Step(int x)

Summary: Steps the specified x.

Parameters:
     x  -  The x.


Generated by MarkdownCodeDoc version 1.2