Drawing Sinus curve in Python

2014-06-01 Thread Farzad Torabi
Hi Experts I am trying to draw a sine curve in Python , well first I had a script that i could draw a function curve in this way : xMax = 25.0 points = [] for i in range(100): x = (float(i)/99)*xMax y = math.sqrt(x) points.append([x,y]) s.Spline(points=points) first i have questions

Re: Drawing Sinus curve in Python

2014-06-01 Thread Steven D'Aprano
On Sun, 01 Jun 2014 05:17:07 -0700, Farzad Torabi wrote: Hi Experts I am trying to draw a sine curve in Python , well first I had a script that i could draw a function curve in this way : xMax = 25.0 points = [] for i in range(100): x = (float(i)/99)*xMax y = math.sqrt(x)