HP Forums
CAS: Combining Logarithms - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: CAS: Combining Logarithms (/thread-13250.html)



CAS: Combining Logarithms - DrD - 07-09-2019 02:27 PM

From an intermediate algebra class example:

[attachment=7452]

How would this be implemented in the hp prime?

-Dale-


RE: CAS: Combining Logarithms - victorvbc - 07-09-2019 05:25 PM

Hi.

Pretty sure it's not the best way, but I did it like this:

Code:
#cas
combineLog(expr1,resBase):=
BEGIN
LOCAL res;

expr1:=lncollect(expr1);
res:=solve(expr("expr1=logb(k,resBase)"),k);

RETURN(logb(res,resBase));
END;
#end

Just make sure CAS has "Use i" enabled.

-Victor


RE: CAS: Combining Logarithms - DrD - 07-09-2019 06:38 PM

(07-09-2019 05:25 PM)victorvbc Wrote:  Just make sure CAS has "Use i" enabled.

-Victor

Thanks, I didn't have "Use i" enabled.