ans=fsolve("eqn",pi/4)*180/pi;						#getting the value of theta for A1 
file_id=fopen("output_outlab_task_A1.txt",'w+');	#getting file id
fprintf(file_id,"%f",ans);							#writing theta
fclose(file_id);									#closing file id