8000 GitHub - camnwalter/math_eval: Simple C program that evaluates math expressions.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

camnwalter/math_eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

math_eval

Simple C program that evaluates math expressions.

This was written over Thanksgiving Break 2023, so it's not the best :)

Operations supported:

  • Addition
  • Subtraction
  • Multiplication
    • Implicit multiplication is also supported, but doesn't have higher precedence.
  • Division
  • Exponentiation
  • Parentheses

Potential additional features, in order of how likely I am to do them...

  • Built-in functions

    • sin, csc

    • cos, sec

    • tan, cot

    • sinh, csch

    • cosh, sech

    • tanh, coth

    • arcsin, arccsc

    • arccos, arcsec

    • arctan, arccot

    • log (log 10)

    • log_n

    • factorial

    • pi

    • e

  • Variables

How to build:

  • run make, or make debug for debugging purposes.
  • run the executable via ./math_eval.

Credits

About

Simple C program that evaluates math expressions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0