lukew3 / mathgenerator

A math problem generator, created for the purpose of giving self-studying students and teaching organizations the means to easily get access to high-quality, generated math problems to suit their needs.
https://lukew3.github.io/mathgenerator
MIT License
690 stars 178 forks source link

Find Percentage Error if True and Observed Values are given #355

Closed Sankari-K closed 3 years ago

Sankari-K commented 3 years ago

Given the True value and the Observed value, calculate the percentage error.

Example Problem: V true = 100 V observed = 105

Example Solution: Percentage error is 5 %

Further Explanation: Percentage error will be ((abs(V true - V observed))/abs(V true))*100

Would you like to be assigned to this: Yes, would love to contribute!

lukew3 commented 3 years ago

I like it! Could also do a separate generator for percent difference using the formula: 2*abs(a-b)/(a+b)*100.

Sankari-K commented 3 years ago

I've made a PR : #360