Cody

10 Reputation

4 Badges

12 years, 156 days

MaplePrimes Activity


These are questions asked by Cody

I am trying to find the coordinate vector of v and w with respect to the basis T.

v= <1,5>  

w= <5,4>

T= [<1,1>|<2,3>]

 

I found this help page:

 

http://www.maplesoft.com/support/help/Maple/view.aspx?path=Task/VectorCoordinateVector

 

"Enter a vector in the vector space spanned by this basis"  -how do you know what to put in?

 

> V:=...


Use the Gram-Schmidt process to transform the basis

{Vector(3, {(1) = 0, (2) = 1, (3) = 1}),

Vector(3, {(1) = 1, (2) = 1, (3) = 1}),

Vector(3, {(1) = 1, (2) = 2, (3) = 3})}

for the Euclidean space R3 into an orthonormal basis for R3


Show 3D result.

I want to write a code to eliminate the noise in the data, but am unfamilar with how to do it.  This is the data:

bdata:=[[8,15],[0,18],[0,19],[-1,20],[-9,23],[0,19],[-2,20],[4,17],[-3,19,],[-1,20],[6,16],[6,17],[-2,20],[-8,23],[-2,19],[0,18],[-6,21],[-6,21],[7,16],[-9,22],[5,16],[-9,23],[-7,22],[-2,20],[4,17],[5,17],[-2,19],[-1,20],[-6,21],[5,16],[6,17],[2,17],[0,18],[5,16],[-2,20],[7,16],[-2,20],[1,18],[0,18],[-8,29],[-9,27],[-10,32],[-6,28],[7,11],[5,9],[8,7]]:

Hi I've been searching for an example of a while loop (no recursion) with 2 parts to it, but I have not been able to find one.  Does anyone know of any or can make one up for me?  Thanks!!!

I need to write a recursive method to reverse a string.

The hint given is to convert the string inputed to a character sequence, then apply recursive method, then reverse character sequence, then convert back to  string and output it.

So "abcd" gives output "dcba"

 

I came up with what is below, but I don't know if that's a recursive method.

 

>with(StringTools):

>Reverse("abcd")

        "dcba"

1 2 Page 1 of 2