1
0
Fork 0
mirror of https://github.com/wagesj45/cs-mic.git synced 2024-12-21 17:32:28 -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)
{
CODE BLOCK
CODE BLOCK
}
```
@ -94,7 +94,7 @@ CODE BLOCK
```
for(* expression, bool condition, * expression)
{
CODE BLOCK
CODE BLOCK
}
```
@ -105,11 +105,11 @@ CODE BLOCK
```
if(bool expression)
{
CODE BLOCK
CODE BLOCK
}
else
{
CODE BLOCK
CODE BLOCK
}
```
@ -138,7 +138,7 @@ display: “string”, 12 * 2, “string”, sin(12)
```
function(newFunction, anyArgumentName)
{
sin(anyArgumentName) + cos(anyArgumentName)
sin(anyArgumentName) + cos(anyArgumentName)
}
```
@ -162,23 +162,23 @@ y :: 1
echo: y
for(x :: 1, x < 11, x :: temp + y)
{
echo: x
temp :: y
y :: x
echo: x
temp :: y
y :: x
}
x :: 1
say: “While Loop”
while(x < 10)
{
if(x == 5)
{
display: “The condition x == 5 has been met. x = “, x, “.”
}
else
{
echo: sin(x)
}
x :: x + 1
if(x == 5)
{
display: “The condition x == 5 has been met. x = “, x, “.”
}
else
{
echo: sin(x)
}
x :: x + 1
}
```
@ -214,27 +214,27 @@ The following is a list of the internally recognized functions in CS-MIC:
`sin(double expression)`
Returns the sine value of a given expression.
Returns the sine value of a given `expression`.
`cos(double expression)`
Returns the cosine value of a given expression.
Returns the cosine value of a given `expression`.
`tan(double expression)`
Returns the tangent value of a given expression.
Returns the tangent value of a given `expression`.
`round(double expression)`
Rounds an expression to the nearest whole number.
Rounds an `expression` to the nearest whole number.
`sqrt(double expression)`
Returns the square root of an expression.
Returns the square root of an `expression`.
`abs(double expression)`
Returns the absolute value of a given expression.
Returns the absolute value of a given `expression`.
`exp(double expression)`
@ -242,9 +242,9 @@ Returns the constant e raised to a given power.
`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)`
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`.