🤖
Spiky Docs
  • 👋Welcome
  • Start coding
    • 🛠️Getting set up
      • 📝What do you need
    • 🦾Functions and Code
      • require("spiky.js")
      • Spiky
        • .filename
      • MotorPair
        • MotorPair()
        • move(amount, unit, steering, speed)
      • Timer
        • Timer(name)
        • reset()
      • StatusLight
        • on(color)
        • off()
      • Speaker
        • beep(note, seconds)
        • start_beep(note)
        • stop()
        • set_volume(volume)
      • App
        • App(name)
        • play_sound(sound, volume)
        • start_sound(sound, volume)
      • LightMatrix
        • show_image(image, brightness)
        • set_pixel(x, y, brightness)
        • write(txt)
        • off()
      • Math
        • acos(x)
        • acosh(x)
        • asin(x)
        • asinh(x)
        • atan(x)
        • atan2(x, y)
        • atanh(x)
        • ceil(x)
        • copysign(x, y)
        • cos(x)
        • cosh(x)
        • degrees(x)
        • erf(x)
        • erfc(x)
        • exp(x)
        • expm1(x)
        • fabs(x)
        • floor(x)
        • fmod(x)
        • frexp(x)
        • gamma(x)
        • isfinite(x)
        • isinf(x)
        • isnan(x)
        • ldexp(x, exp)
        • lgamma(x)
        • log(x)
        • log10(x)
        • log2(x)
        • modf(x)
        • pow(x, y)
        • radians(x)
        • sin(x)
        • sinh(x)
        • sqrt(x)
        • tan(x)
        • tanh(x)
        • trunc(x)
      • ColorSensor
        • ColorSensor(name, port)
        • light_up_all(brightness)
        • light_up(light_1, light_2, light_3)
      • Code
        • custom(code)
        • if(options)
        • print(value)
        • wait(time)
  • the devs
    • 🖥️Developers
Powered by GitBook
On this page
  1. Start coding
  2. 🦾Functions and Code

Math

acos(x)acosh(x)asin(x)asinh(x)atan(x)atan2(x, y)atanh(x)ceil(x)copysign(x, y)cos(x)cosh(x)degrees(x)erf(x)erfc(x)exp(x)expm1(x)fabs(x)floor(x)fmod(x)frexp(x)gamma(x)isfinite(x)isinf(x)isnan(x)ldexp(x, exp)lgamma(x)log(x)log10(x)log2(x)modf(x)pow(x, y)radians(x)sin(x)sinh(x)sqrt(x)tan(x)tanh(x)trunc(x)
Previousoff()Nextacos(x)

Last updated 2 years ago