why?? it should be another thing!!
why?? it should be another thing!!
(OP)
Hi
as you now exp(i*pi)=-1
and as well exp(i*pi)+1 should be 0
but you find it is 1.2246e-016i!!!! in matlab..
does somebody know why???
tnx
as you now exp(i*pi)=-1
and as well exp(i*pi)+1 should be 0
but you find it is 1.2246e-016i!!!! in matlab..
does somebody know why???
tnx





RE: why?? it should be another thing!!
TTFN
RE: why?? it should be another thing!!
corus
RE: why?? it should be another thing!!
Not quite, you would also need a computer with an infinite number of bits. That is to say this is a quantisation problem not a time one.
RE: why?? it should be another thing!!
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
Steam Engine enthusiasts: www.essexsteam.co.uk
RE: why?? it should be another thing!!
bcd maths would be better...
RE: why?? it should be another thing!!
TTFN
RE: why?? it should be another thing!!
Francis
RE: why?? it should be another thing!!
But bcd math doesn't have the binary/decimal conversion error.
RE: why?? it should be another thing!!
TTFN
RE: why?? it should be another thing!!
You can calculate using scaled integers to any arbitrary precision, as long as the function can be reduced to a converging series. About 20 years ago I was teaching a BASIC programming class in which we calculated pi and e to 100000 places using integer arithmetic.
Took some time to calculate though
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
Steam Engine enthusiasts: www.essexsteam.co.uk