Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #1 20090430 19:25:28
Eccentricity and Conic SectionsMade an Eccentricity Graph that shows the transition from circle, through ellipse to hyperbola. Code:if (e < 1) { a = 1; b = Math.sqrt(( 1e*e)*a*a); } else { a = 1; b = Math.sqrt((1+e*e)*a*a); } Which is then plotted by this code (in a loop with "t" going from 0 to 3): Code:if (e < 1) { xVal = a * Math.cos(t); yVal = b * Math.sin(t); } else if (e==1) { xVal = t; yVal = 0; } else { xVal = a / Math.cos(t); yVal = b * Math.tan(t); } "The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  Leon M. Lederman #2 20090430 21:17:45
Re: Eccentricity and Conic SectionsNice toy! Why did the vector cross the road? It wanted to be normal. #3 20090501 08:19:50
Re: Eccentricity and Conic SectionsThanks mathsy, yes I should mask that out. "The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  Leon M. Lederman #4 20090508 20:54:49
Re: Eccentricity and Conic SectionsA new version, and I put it on Eccentricity "The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  Leon M. Lederman 