Difference between revisions of "Talk:E"

From Organic Design wiki
(Relationship to pi, e)
(damn - maybe just an approx. :-()
Line 5: Line 5:
 
----
 
----
 
Is the relationship (7/5) * (pi/e) exact, or is it an approximation? --[[User:Sven|Sven]] 10:19, 22 Aug 2006 (NZST)
 
Is the relationship (7/5) * (pi/e) exact, or is it an approximation? --[[User:Sven|Sven]] 10:19, 22 Aug 2006 (NZST)
 +
:I had always thought it was exact, but....
 +
<table class=document-code><tr><td><pre>
 +
#!/usr/bin/perl
 +
use Math::Trig;
 +
print 7*pi/5/exp(1);
 +
print "\n";
 +
print ((1+sqrt(5))/2);
 +
print "\n";
 +
</pre></table>
 +
::gives...
 +
<table class=document-code><tr><td><pre>
 +
1.61801828970729
 +
1.61803398874989
 +
</pre></table>
  
 
----
 
----

Revision as of 21:37, 21 August 2006

Interesting, the closure of the math tag is missing the / in the docie e^x = \sum_{n = 0}^{\infty} {x^n \over n!} = 1 + x + {x^2 \over 2!} + {x^3 \over 3!} + {x^4 \over 4!} + \cdots

Sven 09:48, 16 Nov 2005 (NZDT)

Is the relationship (7/5) * (pi/e) exact, or is it an approximation? --Sven 10:19, 22 Aug 2006 (NZST)

I had always thought it was exact, but....
#!/usr/bin/perl
use Math::Trig;
print 7*pi/5/exp(1);
print "\n";
print ((1+sqrt(5))/2);
print "\n";
gives...
1.61801828970729
1.61803398874989