Post Reply 
Squaring the Binomial
05-22-2021, 05:40 PM
Post: #3
RE: Squaring the Binomial
Instead of purging variables, we can quote them. (quote(expr) == 'expr')
Quoting returns its argument unevaluated.

Cas> a:=b:=c:=1
Cas> expand('(12*c^4 + 1/4*a^6*c)^2')

1/16*a^12*c^2+6*a^6*c^5+144*c^8

---

BUG report: sometimes quoting does not work.
HP Prime emulator 2.1.14181 (2018 10 16):

Cas> expand('(12*c^4 + 1/4*a^6*c)^2')

150.0625

Not only quote not working, results somehow turned approximate.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Squaring the Binomial - MullenJohn - 05-22-2021, 03:54 PM
RE: Squaring the Binomial - Joe Horn - 05-22-2021, 04:37 PM
RE: Squaring the Binomial - Albert Chan - 05-22-2021 05:40 PM



User(s) browsing this thread: 1 Guest(s)