Skip to content

1.0.0

Latest
Compare
Choose a tag to compare
@davidpfister davidpfister released this 26 May 13:21
· 2 commits to master since this release
240481d

Release Note: evaluate.f v1.0.0 - Crunching Equations Like a Math Wizard!

🎉 Grab your calculators, Fortran fans, it’s time to parse some equations! 🎉
The evaluate.f library has blasted into its 1.0.0 release. 🧙‍♂️

What's New?

  • Equation Enchantment: Transform gnarly strings like cos((a+b)^2+1.6*log(c)) into numbers. Built on the legendary work of George Benthien, now modernized for the 21st century! 🧮
  • Function Fiesta: Supports arithmetic operators (+, -, *, /, ^), functions like sin, cos, tan, log, exp, and more, plus nested parentheses for all your wild math dreams. 🎉
  • Predefined Pals: Comes with pi and the imaginary unit i ready to roll, so you can start solving without breaking a sweat. 🥧
  • Type-Safe Sorcery: Fully type-explicit, fpm-compatible, and modernized with Fortran 2008/2018 flair. No more F77 ghosts haunting your code! 👻
  • Error Handling Magic: Catches everything from mismatched parentheses to division by zero with a detailed error code table that’s clearer than a math textbook. 📚

Why v1.0.0?

Inspired by a benchmarking adventure with benchmark.f, we found George Benthien’s classic parser, gave it a modern Fortran makeover, and set it loose to make your equation-solving life a breeze! 💪

Known Quirks

  • Parameter names must start with a letter and stay under 24 characters, or they’ll throw a tantrum (error code 11). Keep it short and sweet! 😅

Get Started

Clone the repo, fire up fpm, and start parsing equations like a math rockstar. Your formulas are begging to be evaluated!

git clone https://github.com/davidpfister/evaluate.f
cd evaluate.f
fpm @build

Thanks

Big thanks to George Benthien for the original code.

Check out the documentation and start parsing equations! 🚀