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