# List of math functions / operators

**URL:** <https://in-thread.sonic-pi.net/t/list-of-math-functions-operators/5689>\
**Category:** Support, Help & Resources\
**Created:** [June 9, 2021, 2:35pm UTC](https://in-thread.sonic-pi.net/t/list-of-math-functions-operators/5689 "2021-06-09T14:35:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![baya](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@baya](https://in-thread.sonic-pi.net/u/baya)\
**Post date:** [June 9, 2021, 2:35pm UTC](https://in-thread.sonic-pi.net/t/list-of-math-functions-operators/5689/1 "2021-06-09T14:35:45Z")

</div>

Hello everyone  
I started to use sonic pi without musical or coding background

I would like to know all the tools possible to manipulate,compare numbers and boolean  
Which are probably obvious to most of you, but not to me: D

like list of math functions / operators and their syntax that it is possible to use in sonic pi  
Thanks for any help!

---

<div class="post-metadata">

**Author:** ![hitsware](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hitsware](https://in-thread.sonic-pi.net/u/hitsware)\
**Post date:** [June 9, 2021, 3:18pm UTC](https://in-thread.sonic-pi.net/t/list-of-math-functions-operators/5689/2 "2021-06-09T15:18:55Z")

</div>

[https://www.tutorialspoint.com/ruby/ruby\_operators.htm](https://www.tutorialspoint.com/ruby/ruby_operators.htm)

---

<div class="post-metadata">

**Author:** ![ethancrawford](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@ethancrawford](https://in-thread.sonic-pi.net/u/ethancrawford)\
**Post date:** [June 9, 2021, 3:43pm UTC](https://in-thread.sonic-pi.net/t/list-of-math-functions-operators/5689/3 "2021-06-09T15:43:18Z")

</div>

@baya - just an FYI, what you also need to know if you are wondering about things like this is that Sonic Pi is based on top of (but is not 100% compatible with) the Ruby language. There is a fair amount of crossover from Ruby to Sonic Pi as far as operators and basic math functions are concerned, but compatibility with any parts of Ruby may change at any time in the future.

That being said, for the moment, if you are wondering about basic operators and simple functions that aren’t described in Sonic Pi’s documentation, there’s a good chance they’re available in Ruby and may well work still. As Michael has shown above, Ruby tutorials or their official docs on the internet are just a search away 🙂

---

<div class="post-metadata">

**Author:** ![baya](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@baya](https://in-thread.sonic-pi.net/u/baya)\
**Post date:** [June 10, 2021, 6:14pm UTC](https://in-thread.sonic-pi.net/t/list-of-math-functions-operators/5689/4 "2021-06-10T18:14:01Z")

</div>

🙏  
Thanks for your answers I will check it
