Functions

  • This function takes two f64 numbers as arguments, left and right, and returns their sum as an f64. The calculation is performed using native
  • This function takes two f64 numbers as arguments, left and right, and returns their quotient as an f64. The calculation is performed using native
  • Calculates the factorial of a given f64 number. Returns the factorial result as an f64. It uses recursion to calculate the factorial.
  • Calculates the Fibonacci number at a given f64 index, using recursion. Returns the Fibonacci result as f64.
  • Checks whether the given f64 number is even. Returns true if the number is even, otherwise false. The function calculates the remainder of the input number divided by 2.0 and compares it to 0.0. If they are equal, the input number is even.
  • Checks whether the given f64 number is odd. Returns true if the number is odd, otherwise false. The function calculates the remainder of the input number divided by 2.0 and compares it to 0.0. If they are not equal, the input number is odd.
  • Determines whether number is a perfect cube by comparing its cube root cubed with the original number. Returns true if the number is a perfect cube, otherwise false.
  • Determines if the given f64 number is a perfect power by comparing its square root squared with the original number. Returns true if the number is a perfect power, otherwise false.
  • Determines whether number is a perfect square by comparing its square root squared with the original number. Returns true if the number is a perfect square, otherwise false.
  • Returns true if the given f64 number is prime. This function checks for primality by iterating through numbers from 2 to the square root of the given number
  • This function takes two f64 numbers as arguments, left and right, and returns the result of the modulo operation (left modulo right) as an f64. The calculation is performed using the native modulo operator.
  • This function takes two f64 numbers as arguments, left and right, and returns their product as an f64. The calculation is performed using native
  • This function takes two f64 numbers as arguments, left and right, and returns the left raised to the power of right as an f64. The calculation is performed using the native powf method.
  • This function takes two f64 numbers as arguments: left and right, and returns the left raised to the power of 1 / right as an f64. The calculation is performed using the native powf method.
  • This function takes two f64 numbers as arguments, left and right, and returns their difference as an f64 where left is substracted by right.