This works:
expr1:=sqrt(m)/sqrt(k);
subs(sqrt(m)/sqrt(k)=w,expr1);
gives
w
And this works
expr2:=5*sqrt(m)/sqrt(k);
subs(sqrt(m)/sqrt(k)=w,expr2);
gives 5 * w
But why this does not work?
expr3:=A*sqrt(m)/sqrt(k);
subs(sqrt(m)/sqrt(k)=w,expr3);
I was expecting A*w to be returned, but it returns
expr3 as is. algsubs also do not work.
How can one tell Maple to replace sqrt(m)/sqrt(k) by w anywhere
it appears in expression?
Using Maple 2017.2 on windows.
Thanks
--Nasser
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 292 |
Nodes: | 16 (2 / 14) |
Uptime: | 205:27:21 |
Calls: | 6,618 |
Calls today: | 2 |
Files: | 12,168 |
Messages: | 5,316,740 |