What are some of the cool things you can do with Soystats? This page lists just a few to start you off, make sure to poke around the rest of the documentation and the internal help() function to learn more!
Overgrown calculator:
Do you go to Google every time you need to do some arithmetic? Try using Soystats!
1+1
Math.pow(10,2) // ten squared
Calculate a mean:
Want the know the average of some numbers? Try this:
myNumbers = $V([1,5,9])
myNumbers.mean()
Flip a coin:
Need to make a decision and don't have any change? Try this (think of 1 as heads and 0 as tails):
rbinom(1).view()
Convert the base of a number:
Want to know what a number is in hexadecimal? Try this:
base(1024,16)
Find a fraction:
What's the best fractional representation of a given decimal number?
fraction(0.125)
Use tab completion:
Want to know what methods exist for an object? Try tab completion!
idmat = Matrix.I(3) // make a 3x3 identity matrix
Then type: idmat. and hit tab twice (you have to do it twice due to the large number of results). Voila! All the things you can do with your matrix are displayed.
Add your own code:
You can easily extend Soystats with any of your own Javascript!
inc = function(x) {
return x+1;
}
inc(5)
And much more!
Soystats is just beginning, so be sure to dive in to see what it offers and check back regularly for updates and new features.