d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Basic Matlab
Add Reply New Topic New Poll
Member
Posts: 167
Joined: Oct 2 2014
Gold: 0.00
Jan 21 2015 05:49pm
I need with the following

Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jan 21 2015 08:00pm
what do you have so far and what do you need help with?
Member
Posts: 9,099
Joined: Nov 23 2002
Gold: 2,911.26
Jan 23 2015 04:49am
function [out1 out2]=PiEst(n) %n is the number of steps
x=1/3^.5
x1=x
x2=x
for i=2:n
x1=((1+x1^2)^.5-1)/x1
x2=x2/((1+x1^2)^.5+1)
end
out1=x1
out2=x2
end

any other matlab questions, feel free to ask. I taught a course on matlab computations

This post was edited by TheStealthTarget on Jan 23 2015 04:49am
Go Back To Homework Help Topic List
Add Reply New Topic New Poll