|
@@ -50,7 +50,10 @@ mod(17, 4) # Modulo
|
|
|
3 in to cm # Unit conversion with the 'to' keyword
|
|
|
|
|
|
cos(pi/3 + pi) # Call mathematical functions
|
|
|
-pi/3 + pi // cos # same as above, useful in REPL
|
|
|
+pi/3 + pi // cos # Same, 'arg // f' is equivalent to 'f(arg)'
|
|
|
+ # The '//' operator has the lowest precedence
|
|
|
+ # which makes it very useful for interactive
|
|
|
+ # terminals (press up-arrow, and add '// f')
|
|
|
|
|
|
# 4. Variable definitions
|
|
|
|