Miscellaneous functions

class Function
classmethod sin(x)

Return a dynamic Number for the sine of the given x value.

classmethod cos(x)

Return a dynamic Number for the sine of the given x value.

classmethod compare_LT(v, w)

Return a dynamic Boolean indicating whether the given v is less than the given w.

Example:

s = Slider(-4, 4)
p = Point(s, If(Function.compare_LT(s, 0), Number(1), Number(2)))