Jump to content

Calculator gives math error


henRJ

Recommended Posts

I'm attempting to solve an electrical engineering problem. The question was to find the values of xd, xa, rand gin a p-n junction, as such I have completed the first three parts and am now struggling to find the value of the the last part due to my calculator stating a math error when imputing the values into the equation i'm using. The value of gis found using the equation gd = I/ nkT and the only value i'm missing is the value for I which when I input i receive my error. With all the correct values inserted, i have put this equation into my calculator. I = 10-8 * ( e(0.5/1.4*1.38x10^-23*300 -1). Any help would be greatly appreciated, thank you.   

Link to comment
Share on other sites

Physical calculators are reporting error when there is e.g. division by 0, or sqrt( negative number ).

 

You can try on-line calculators. Like e.g. Wolfram Alpha:

https://www.wolframalpha.com/

Your equation is missing parenthesis.

 

e can be interpreted as Euler's number https://en.wikipedia.org/wiki/E_(mathematical_constant)

but it also can be interpreted as exponent in IEEE floating-point standard.

 

Link to comment
Share on other sites

  • 2 weeks later...

If I plug the equation into my calculator as written, I get an answer of 0, as 0.5/1.4*1.38e-23*300 = 1.479e-21 and my when my calculator tries to raise e to this power, the answer requires more accuracy than the calculator can handle, so it rounds it down to 1 and then you are subtracting 1 from this.   However, I can get an answer when I use the calculator on my PC, as it carries out answers to many more decimal places.

If However, you meant to write 0.5/(1.4*1.38e23*300), then then answer to this is 8.63e19, and trying to raise e to this power will produce an overflow error as most calculators can't handle numbers that large  They generally have to be smaller than 10100, and anything much larger than e230 will produce an overflow error

Link to comment
Share on other sites

2 minutes ago, Janus said:

  However, I can get an answer when I use the calculator on my PC, as it carries out answers to many more decimal places. 

Professional computer calculators (rather not what is built-in OS) can theoretically handle as big number as there is available memory (or virtual memory on disk). But it requires making dynamically expanding floating point implementation.

https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic

 

List of arbitrary-precision arithmetic software

https://en.wikipedia.org/wiki/List_of_arbitrary-precision_arithmetic_software

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.