This shows you the differences between two versions of the page.

| |

buzz_manual [2018/03/18 23:40] – created root | buzz_manual [2018/03/23 18:17] (current) – [The math Library] jayam |
---|

* ''%%math.asin(x)%%'' returns the arc sine of ''%%x%%'' as a float. | * ''%%math.asin(x)%%'' returns the arc sine of ''%%x%%'' as a float. |

* ''%%math.acos(x)%%'' returns the arc cosine of ''%%x%%'' as a float. | * ''%%math.acos(x)%%'' returns the arc cosine of ''%%x%%'' as a float. |

* ''%%math.**atan2**(y,x)%%'' returns the arc tangent of ''%%y,x%%'' as a float. | * ''%%math.**atan**(y,x)%%'' returns the arc tangent of ''%%y,x%%'' as a float. |

* ''%%math.min(x,y)%%'' returns the minimum between ''%%x%%'' and ''%%y%%''. The type of the return value corresponds to the type of the minimum value: ''%%min(1.0, 2)%%'' is ''%%1.0%%'', and ''%%min(1,2.0)%%'' is ''%%1%%''. | * ''%%math.min(x,y)%%'' returns the minimum between ''%%x%%'' and ''%%y%%''. The type of the return value corresponds to the type of the minimum value: ''%%min(1.0, 2)%%'' is ''%%1.0%%'', and ''%%min(1,2.0)%%'' is ''%%1%%''. |

* ''%%math.max(x,y)%%'' returns the maximum between ''%%x%%'' and ''%%y%%''. The type of the return value corresponds to the type of the maximum value: ''%%max(1.0, 2)%%'' is ''%%2%%'', and ''%%max(1,2.0)%%'' is ''%%2.0%%''. | * ''%%math.max(x,y)%%'' returns the maximum between ''%%x%%'' and ''%%y%%''. The type of the return value corresponds to the type of the maximum value: ''%%max(1.0, 2)%%'' is ''%%2%%'', and ''%%max(1,2.0)%%'' is ''%%2.0%%''. |