|
From: | Doug Stewart |
Subject: | Re: How to do a negative exponent |
Date: | Wed, 15 Jul 2015 07:18:52 -0400 |
x=sym(x)
octave:2> f = ((e^x + e^-x)/2)^2 - ((e^x - e^-x)/2)^2
error: subscript indices must be either positive integers or logicals
I think I understand the error msg
but is there a good way around a negative exponent ?
--
[Prev in Thread] | Current Thread | [Next in Thread] |