Maple help! (1 Viewer)

McLake

The Perfect Nerd
Joined
Aug 14, 2002
Messages
4,187
Location
The Shire
Gender
Male
HSC
2002
Have you learnt to write recursive functions yet?

If so, write a recursive function. Something like this (note this is NOT maple code, just a gist of what teh code would be):

findXfunction :: (x : integer)

if x = 0
return 1.00
else if x = 1
return 2.50
else
return log(findXfunction(x - 1) + 7) / (6*(findXfunction(x-2)))

end function.

The alternative is to write a loop ...
 

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
I haven't even booked my maple exam...and I'm scared because I don't know how to use Maple except for the easy things like in the assignment...
 

babydoll_

wat
Joined
Oct 22, 2002
Messages
4,531
Gender
Undisclosed
HSC
N/A
GO MATH 1031!!!
The practice test is now available. Follow the link below. You must score at least 3/10 in a practice test before the end of week 10.

Once you have scored 3/10 in the practice test, a link to the final test will appear. You are allowed 5 attempts at the final test and your best score will count 5% towards your final MATH1031 mark.

You can have unlimited attempts at the practice test and they do not count towards your final mark, so try as many as you like.

A good strategy might be to work through a couple of the worksheets above, and then have a go at a practice test, and only attempt the relevant questions. Then go back and try another of the worksheets above.
In case you don't get whats going on, we can do the tests at home, uni, whatever! WITH GUIDANCE! w00T!
 

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
OMG!

That's so lucky!

Our is a test in the lab computers or something...can't cheat >.<
 

enak

Limbo
Joined
Oct 18, 2002
Messages
1,046
Location
Sydney
Gender
Undisclosed
HSC
N/A
The maple test shouldnt be too hard since they are giving us the manual while we are doing it, so we just look up the functions we need in the test.
 

wogboy

Terminator
Joined
Sep 2, 2002
Messages
653
Location
Sydney
Gender
Male
HSC
2002
Hint: Look up the rsolve function in your computing notes.

Alternatively you can create an algorithm to do it. Here's a simple maple algorithm which simply computes the sum of squares up to a number for example:

sumsq := proc(n)
sumsq(0) := 0;
sumsq(n) := sumsq(n-1) + n^2;
end proc;
 

gman03

Active Member
Joined
Feb 7, 2004
Messages
1,283
Gender
Male
HSC
2003
Might as well ask another Maple question... my problem is i can't express the definte integral like the anwser (which is only 'x') .. pls see attachment.

The above line is the question itself... the bottom 'colour' line is my 'wrong' attempt to solve that problem...

Thank you
 
Last edited:

babydoll_

wat
Joined
Oct 22, 2002
Messages
4,531
Gender
Undisclosed
HSC
N/A
Originally posted by McLake
Have you learnt to write recursive functions yet?

If so, write a recursive function. Something like this (note this is NOT maple code, just a gist of what teh code would be):

findXfunction :: (x : integer)

if x = 0
return 1.00
else if x = 1
return 2.50
else
return log(findXfunction(x - 1) + 7) / (6*(findXfunction(x-2)))

end function.

The alternative is to write a loop ...
Originally posted by wogboy
Hint: Look up the rsolve function in your computing notes.

Alternatively you can create an algorithm to do it. Here's a simple maple algorithm which simply computes the sum of squares up to a number for example:

sumsq := proc(n)
sumsq(0) := 0;
sumsq(n) := sumsq(n-1) + n^2;
end proc;
i dont know any of this!

i think it has something to do with difference equations although im not sure
 

t-i-m-m-y

Member
Joined
Nov 15, 2002
Messages
1,756
Gender
Male
HSC
2003
in MATLAB that would be really easy. similar syntax

babydoll_: define the function x(n). then evaluate x(n) at n=752 voila!

EDIT: need to use looping syntax to do it
 
Last edited:

t-i-m-m-y

Member
Joined
Nov 15, 2002
Messages
1,756
Gender
Male
HSC
2003
Originally posted by Ragerunner
Our is a test in the lab computers or something...can't cheat >.<
don't even think about cheating dude.

btw we've had ours. do the practice test. it exactly the same. just diff numbers. i'm assuming similar style for 1131/1141
 

Dash

ReSpEcTeD
Joined
Jul 17, 2003
Messages
1,671
Location
nExT dOoR fOoL!
Gender
Male
HSC
2003
I have a quesion...
How do we input the inverse of tan(x) in maple?
 
Last edited:

enak

Limbo
Joined
Oct 18, 2002
Messages
1,046
Location
Sydney
Gender
Undisclosed
HSC
N/A
Dash:
arctan(x)


Btw, i have a question, how do we input something like, we get 3 equations
sinpi(x) if x<0
x^2 is 0<=x<=1
exp(1-x) if x>1

then plot the graph of g over the interval [-1,2]
evaluate (exactly) the integral of g over the interval [-1,2]
 

enak

Limbo
Joined
Oct 18, 2002
Messages
1,046
Location
Sydney
Gender
Undisclosed
HSC
N/A
oooh, dont worry, i skipped the plotting piecewise-defined functions part in the notes
 

enak

Limbo
Joined
Oct 18, 2002
Messages
1,046
Location
Sydney
Gender
Undisclosed
HSC
N/A
Hmm, one question
How do u do operations on matrices?
Like form the augmented matrix for the system Ax = b and use maples row operation commands to reduce this augmented matrix to row echelon form?
 

t-i-m-m-y

Member
Joined
Nov 15, 2002
Messages
1,756
Gender
Male
HSC
2003
its easy in MATLAB, as matlab treats everything as a matrix and such. maple is more symbolic, and i dont have a clue to be honest:)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top