Ronan

1022 Reputation

14 Badges

13 years, 111 days
East Grinstead, United Kingdom

MaplePrimes Activity


These are questions asked by Ronan


I am trying to do a substitution as shown in the attached document. I know variants of this question have been asked before but dont quiet get what to do. It is problem with algsubs and how it handles denominators I think. Can get substiturion to work for simple fractions but more complicated ones fail. Would appreciate any guidance here.

restart 

``

``

CR := proc (a, b, c, d) options operator, arrow; (a-c)*(b-d)/((a-d)*(b-c)) end proc

proc (a, b, c, d) options operator, arrow; (a-c)*(b-d)/((a-d)*(b-c)) end proc

(1)

eqns := CR(a, b, c, d)

(a-c)*(b-d)/((a-d)*(b-c))

(2)

e1 := CR(b, a, c, d)

(b-c)*(a-d)/((b-d)*(a-c))

(3)

simplify(e1, {(a-c)*(b-d)/((a-d)*(b-c)) = lambda})

(a*b-a*c-b*d+c*d)/(a*b-a*d-b*c+c*d)

(4)

e1

(b-c)*(a-d)/((b-d)*(a-c))

(5)

``

lambda

lambda

(6)

applyrule((a-c)*(b-d)/((a-d)*(b-c)) = lambda, e1)

(b-c)*(a-d)/((b-d)*(a-c))

(7)

alias(lambda = (a-c)*(b-d)/((a-d)*(b-c)))

lambda

(8)

e1

(b-c)*(a-d)/((b-d)*(a-c))

(9)

``

NULL

``

f := a/b

a/b

(10)

``

f := algsubs(a/b = alpha, f)

alpha

(11)

f

alpha

(12)

algsubs((a-c)*(b-d)/((a-d)*(b-c)) = lambda, e1)

Error, (in algsubs) cannot compute degree of pattern in a

 

``

 

Download UHG5_substitution.mw

Using maple 16. When I run a worksheet it adds in extra rows of the red >s. The attached example was run 3 times. How do I stop this happening?

restart

``

``

``

``

``

``

``

``

``

``

``

``

``

solve(x^(2*x)+6)

(1/2)*(ln(6)+I*Pi)/LambertW((1/2)*ln(6)+((1/2)*I)*Pi)

(1)

``

``

``

``

solve(y+4 = 0)

-4

(2)

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``

 

Download worksheet_issue.mw

Hello

Am trying to convert a vector projection to matrix type output.

Attached is a sample worksheet.

 

Transformation_matri.mw 

 

In the attached worksheet there are 2 numbers. The first is the answer a got, the second is the offical correct answer.Ther look entirely different. Numerically they are the same. I wondering is there a way to simplify my answer?Rationalize_ans.mw 

I am reading a book "The Foundatiosn of  Celestial Mechanics" available to download here http://ads.harvard.edu/books/1989fcm..book/  in pdf. There some excerise questions to do at the end of each chapter. I'm at the end of Ch 1! I haven't used the VectorCalculus side of Maple (16) and am rusty on the subject, (read as did 30 years ago)

How would i do this question?

 

First 21 22 23 24 25 26 Page 23 of 26