#physicalc
A Rest physical calculator.
Calculate the mass-energy equivalence, the famous Einstein equation:
E=mc²
Clone this repository, compile the project and enjoy it!
Request the Rest service, passing a mass:
http://localhost:8080/physicalc/einsten/10
The expected return will be the corresponding energy in JSON format:
{"equation":"e=mc2","mass":10.0,"energy":8.9875517873681766E17}
The app too is running on Heroku. You can test it in: https://physicalc.herokuapp.com/einsten/10