Trig vs hyperbolic handling differences in Prime CAS



#2

I posted this previously, but received no response so I'm trying again .

When I enter COS(x)^2+SIN(x)^2 in CAS I get the result 1, which is correct since this result is true regardless of the value of x. However, if I enter COSH(x)^2-SINH(x)^2 in CAS I should also get 1 as a result, however, I simply get COSH(x)^2-SINH(x)^2 as a result instead. If I replace x with a numerical value instead, then I get the proper result of 1. Why ? And yes I am in radians mode and have Exact unchecked when I do this.


#3

Try using hyp2exp:

simplify(hyp2exp(cosh(x)^2-sinh(x)^2))

Gives you the answer you are looking for.


#4

Thank you very much. Giving it some thought, this makes a lot of sense because while trig functions like cosine and sine are primary, hyperbolics like cosh and sinh are derived from the exponential function, which is primary.


#5

Agreed. There is value in seeing the intermediate result of:

((exp(x)+1/exp(x))/2)^2-((exp(x)-1/exp(x))/2)^2


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime: CAS taylor Alberto Candel 5 4,094 12-13-2013, 09:45 PM
Last Post: Alberto Candel
  HP Prime CAS curiosity bluesun08 11 4,910 12-10-2013, 01:03 PM
Last Post: Han
  [HP-Prime CAS] "Warning, ^ (Command) Is ambiguous on non square matrices"?? CompSystems 1 2,218 12-07-2013, 07:15 PM
Last Post: CompSystems
  HP Prime: complex numbers in CAS. Alberto Candel 1 1,925 12-06-2013, 02:36 PM
Last Post: parisse
  HP Prime: Proper Use of Home View and CAS View James Williams 9 4,326 12-05-2013, 02:44 PM
Last Post: James Williams
  [HP Prime] plotfunc() bug in CAS Chris Pem10 2 2,447 12-04-2013, 02:46 PM
Last Post: Chris Pem10
  HP Prime: Home/CAS? Alasdair McAndrew 11 3,953 11-26-2013, 02:48 PM
Last Post: Alberto Candel
  HP Prime numerical precision in CAS and HOME Javier Goizueta 5 2,475 11-16-2013, 03:51 AM
Last Post: Paul Dale
  Need CAS help Michael de Estrada 6 2,689 11-13-2013, 01:29 AM
Last Post: cyrille de Brébisson
  HP Prime - CAS functions in Spreadsheet App CR Haeger 6 2,528 11-11-2013, 12:37 AM
Last Post: Michael de Estrada

Forum Jump: