Skip to content

Lucas8448/Simplicity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Simplicity Language Features

Keywords

  • var: For variable declaration

  • func: To define a function

  • return: To return a value from a function

  • print: To print a value to the console

  • for: For loop

Operators

  • + : Addition

  • - : Subtraction

  • * : Multiplication

  • / : Division

  • ^ : Power

Built-in Functions

  • sum(a, b): Addition

  • difference(a, b): Subtraction

  • product(a, b): Multiplication

  • quotient(a, b): Division

  • square(a): Square of a number

  • sqrt(a): Square root

  • sin(a): Sine function

  • cos(a): Cosine function

  • tan(a): Tangent function

  • log(a): Natural logarithm

  • exp(a): Exponential function

  • floor(a): Floor function

  • ceil(a): Ceiling function

  • round(a): Round to the nearest integer

  • abs(a): Absolute value

  • max(a, b): Maximum value

  • min(a, b): Minimum value

  • and(a, b): Logical AND

  • or(a, b): Logical OR

  • not(a): Logical NOT

Constants

  • pi: 3.141592653589793

  • e: 2.718281828459045

  • g: 9.81 (acceleration due to gravity)

Comment

  • Use // for single line comments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages