1
0
Fork 0
mirror of https://github.com/wagesj45/cs-mic.git synced 2024-12-22 09:42:43 -06:00

Update README.md

This commit is contained in:
Jordan Wages 2018-06-14 20:39:32 -05:00 committed by GitHub
parent b4e693d55b
commit ae51396d2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ CS-MIC follows a few basic rules when interpreting user input, but should prove
``` ```
while(bool expression) while(bool expression)
{ {
CODE BLOCK CODE BLOCK
} }
``` ```
@ -94,7 +94,7 @@ CODE BLOCK
``` ```
for(* expression, bool condition, * expression) for(* expression, bool condition, * expression)
{ {
CODE BLOCK CODE BLOCK
} }
``` ```
@ -105,11 +105,11 @@ CODE BLOCK
``` ```
if(bool expression) if(bool expression)
{ {
CODE BLOCK CODE BLOCK
} }
else else
{ {
CODE BLOCK CODE BLOCK
} }
``` ```
@ -162,23 +162,23 @@ y :: 1
echo: y echo: y
for(x :: 1, x < 11, x :: temp + y) for(x :: 1, x < 11, x :: temp + y)
{ {
echo: x echo: x
temp :: y temp :: y
y :: x y :: x
} }
x :: 1 x :: 1
say: “While Loop” say: “While Loop”
while(x < 10) while(x < 10)
{ {
if(x == 5) if(x == 5)
{ {
display: “The condition x == 5 has been met. x = “, x, “.” display: “The condition x == 5 has been met. x = “, x, “.”
} }
else else
{ {
echo: sin(x) echo: sin(x)
} }
x :: x + 1 x :: x + 1
} }
``` ```
@ -214,27 +214,27 @@ The following is a list of the internally recognized functions in CS-MIC:
`sin(double expression)` `sin(double expression)`
Returns the sine value of a given expression. Returns the sine value of a given `expression`.
`cos(double expression)` `cos(double expression)`
Returns the cosine value of a given expression. Returns the cosine value of a given `expression`.
`tan(double expression)` `tan(double expression)`
Returns the tangent value of a given expression. Returns the tangent value of a given `expression`.
`round(double expression)` `round(double expression)`
Rounds an expression to the nearest whole number. Rounds an `expression` to the nearest whole number.
`sqrt(double expression)` `sqrt(double expression)`
Returns the square root of an expression. Returns the square root of an `expression`.
`abs(double expression)` `abs(double expression)`
Returns the absolute value of a given expression. Returns the absolute value of a given `expression`.
`exp(double expression)` `exp(double expression)`
@ -242,9 +242,9 @@ Returns the constant e raised to a given power.
`log(double expression1, double expression2)` `log(double expression1, double expression2)`
Returns the log of expression1 to the base of expression2 Returns the log of `expression1` to the base of `expression2`
`precision(double expression1, int expression2)` `precision(double expression1, int expression2)`
Returns the value of expression1 to a given precision. For example, precision(12.3456789, 4) will return 12.3456. Returns the value of `expression1` to a given precision. For example, `precision(12.3456789, 4)` will return `12.3456`.