- #1
CourtneyS
- 23
- 0
Homework Statement
Using maple cw version, trying to write a state that will compute f=x/y^2 over several iterations.
y^2 is changing but x is dependent on a value input my user.
I don't really know how to write the loop?
I need the loop to run on an interval of different y values that I can put in and then the x value is determined before the loop begins and is fixed, not sure how to put that in either.
Homework Equations
f=x/y^2
The Attempt at a Solution
I guess I would have to use a do loop,
do x/y^2
and I would have to declare the x value
so x=0 for example
while y -30.5...30.5
and then answer=f; printed each time
or something like that
I'm not really sure on the syntax I haven't used maple before and the online stuff isn't very helpful.