Skip to content

An expanded Scientific Calculator CLI for Physical Science

License

Notifications You must be signed in to change notification settings

sschoeller/PhySciCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhySciCalc GitHub top language GitHub contributors

An expanded Scientific Calculator CLI for Physical Science

Requirements:

  • Python 3 or later
  • f2py wrapper: a command line tool for binding Python and Fortran code

Set up development environment

From root directory install dependencies

pip install -r requirements.txt

f2py wrapper usage

f2py -c ext_mod.f90 -m ext

Try it

⚠️  Must have Python3 installed on your PATH

python physcicalc.py

Available operations

  • add: Addition
  • sub: Subtraction
  • mul: Multiplication
  • div: Division
  • sqrt: Square root
  • sin: Sine
  • cos: Cosine
  • tan: Tangent
  • sec: Secant
  • csc: Cosecant
  • cot: Cotangent

Physical science operations

  • Chemistry: g->mol conversion
  • Physics: Kinetic Energy, classical formula (KE=0.5*mv^2) - Python Integration In Progress
  • Physics: Rest energy (E=mc^2)

Planned operations

  • sinh: Hyperbolic sine of a number
  • cosh: Hyperbolic cosine of a number
  • tanh: Hyperbolic tangent of a number

License

GPL-3.0 © Scott Schoeller

About

An expanded Scientific Calculator CLI for Physical Science

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published