help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do a negative exponent


From: Doug Stewart
Subject: Re: How to do a negative exponent
Date: Wed, 15 Jul 2015 07:18:52 -0400



On Tue, Jul 14, 2015 at 4:33 PM, pcsnow <address@hidden> wrote:

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 ?




--


Did you define e to be something other than 2.71828...??
>> e
ans =  2.7183

On my computer
 e^-4
ans =  0.018316



reply via email to

[Prev in Thread] Current Thread [Next in Thread]