From: Marco B. <em...@be...> - 2002-07-17 17:50:47
|
Raymond Toy <to...@rt...> writes: > Note that tan(pi/2) differs quite a bit from 1/cos(pi/2). While I > don't consider this a bug, I do think it's rather inconsistent since > sin(pi/2) is essentially 1 so that tan(pi/2) should be essentially > equal to 1/cos(pi/2). It almost seems as if some intermediate you are asking for two infinte numbers, and CLISP is giving you two infinte numbers, or as close as CLISP can get to infinity. since it goes about calculating them in different ways it gives you different infinities, but this is what hapens when you ask for something which doesn't exist. the cool thing to do would be to implement "trigonometric" numbers ala complex and rationals...ie where pi was NOT 3.14159....but exactly 4arctan(1). -- -Marco Ring the bells that still can ring. Forget your perfect offering. There is a crack in everything. That's how the light gets in. -Leonard Cohen |