|
⇤ ← Revision 1 as of 2010-12-17 12:49:55
Size: 590
Comment:
|
← Revision 2 as of 2010-12-17 12:51:38 ⇥
Size: 542
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 25: | Line 25: |
| * <Your Name>, <Profession>, <Organization> |
Book
Getting started with MATLAB
Author
Rudra Pratap
Edition
import numpy as np
theta=np.array([0,pi/4,pi/2,3*pi/4,pi,5*pi/4])
r=2
for theta in range(0,5):
x=r*float(cos(theta))
y=r*float(sin(theta))
z=x**2+y**2
print x,y,z
Solution by:
- Pooja Kalra, Student, Malwa Institute of Technology
- Vignesh Ganapathiraman, Student, CMI
- T R Shyam Sundar, Student, CMI
- Sonam Kumar, Student, CMI
