Maple Lab Test Questions (1 Viewer)

LordPc

Active Member
Joined
May 17, 2007
Messages
1,370
Location
Western Sydney
Gender
Male
HSC
2008
alright, so im working through the maple lab test questions. stuck on this question (Q3)

let the vector u be an element of R^15 whose kth component is k^2

so i typed in

> a:= seq(k^2,k=1..15);
and got 1,4,9,...225

question is, how do i stick that into a vector?

ive tried
u:= Vector([a]);

since maple notes says the syntax for Vector is Vector([sequence]), but i get some weird message

anyone help on this one?
 
Last edited:

Iruka

Member
Joined
Jan 25, 2006
Messages
544
Gender
Undisclosed
HSC
N/A
I just tried your code in the fairly archaic version of maple that i have at home. There is no problem with it . I think you get that funny message because the vector is long. Test your code with a shorter sequence, and you will see that it displays properly.

You can also pull out some entries of u by using the command

u[3];

for example.
 

Omie Jay

gone
Joined
Nov 8, 2006
Messages
6,673
Location
in my own pants
Gender
Female
HSC
2007
with(LinearAlgebra):
interface(rtablesize=15):
u := <seq(k^2, k=1..15)>;
v := <seq(k^3, k=1..15)>;
evalf(((u.v)/(v.v))*v, 3);

should give u the answer.
Credit goes to uncle, look in the math thread, he posted up solutions to the practice test which is in the back of our blue math1231 info booklet, its pretty handy to go thru it.
 

LordPc

Active Member
Joined
May 17, 2007
Messages
1,370
Location
Western Sydney
Gender
Male
HSC
2008
cool, thanks guys, works now
should give u the answer.
Credit goes to uncle, look in the math thread, he posted up solutions to the practice test which is in the back of our blue math1231 info booklet, its pretty handy to go thru it.
umm, which math thread?

(i did a search
poster = uncle, keywords = maple
and got nothing helpful)
 

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

Top