error with combine((e^x) * e^y,e)

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

error with combine((e^x) * e^y,e)

Message par compsystems » dim. oct. 07, 2018 2:12 pm

High BP

autosimplify(0):;

combine(ln(x)+ln(y),log), combine(ln(x)-ln(y),log)
=> ln(x*y), ln(x/y)

(a^x)*a^y, expand((a^x)*a^y), combine((e^x) * e^y,exp)
=> "a^x*a^y, a^(x+y), exp(x+y)

(a^x)/a^y, expand((a^x)/a^y), combine((e^x)/e^y,exp)
=> a^x/a^y, a^(x-y),exp(x-y)

combine((e^x) * e^y,e), combine((e^x) / e^y,e) =>
"combine(exp(x)*exp(y),exp(1))"
"Error: Bad Argument Value"

belanger
Messages : 59
Inscription : jeu. juil. 27, 2017 3:26 pm

Re: error with combine((e^x) * e^y,e)

Message par belanger » dim. oct. 07, 2018 5:16 pm

The second argument to combine should be a function (or class of functions). So (I would think) putting a number as the second argument should return an error.

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: error with combine((e^x) * e^y,e)

Message par compsystems » dim. oct. 07, 2018 5:20 pm

but e==exp(1) returns true

I think, that should accept the expression exp(1) as synonymous with e, just like ln does with log.

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: error with combine((e^x) * e^y,e)

Message par parisse » lun. oct. 08, 2018 9:11 am

e is not the same type as exp, e is a number, exp is a function.

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: error with combine((e^x) * e^y,e)

Message par compsystems » lun. oct. 08, 2018 2:56 pm

ok, but the CAS could support symbols, which can be very useful in programming

for example

combine( (a^x) * a^y, a) [enter] this would return a^(x+y)

combine( (a^x) / a^y, a) [enter] this would return a^(x-y)

Répondre