From ae51396d2c6bd75ff35a40ca040e6dc3bb2ccc37 Mon Sep 17 00:00:00 2001 From: Jordan Wages Date: Thu, 14 Jun 2018 20:39:32 -0500 Subject: [PATCH] Update README.md --- README.md | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index fd65d51..ffa89a9 100644 --- a/README.md +++ b/README.md @@ -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`.