Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.maple > #1288
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | "Nasser M. Abbasi" <nma@12000.org> |
| Newsgroups | comp.soft-sys.math.maple |
| Subject | question on using subs replace ratio in expression |
| Date | Wed, 15 Nov 2017 18:04:12 -0600 |
| Organization | Aioe.org NNTP Server |
| Lines | 30 |
| Message-ID | <ouikm0$bdf$1@gioia.aioe.org> (permalink) |
| Reply-To | nma@12000.org |
| NNTP-Posting-Host | ix41Ar8JdTtAwrmr0/ZBsQ.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
| Content-Language | en-US |
| X-Mozilla-News-Host | news://nntp.aioe.org:119 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.soft-sys.math.maple:1288 |
Show key headers only | View raw
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
Back to comp.soft-sys.math.maple | Previous | Next — Next in thread | Find similar
question on using subs replace ratio in expression "Nasser M. Abbasi" <nma@12000.org> - 2017-11-15 18:04 -0600 Re: question on using subs replace ratio in expression acer <maple@rogers.com> - 2017-11-15 20:48 -0800
csiph-web