octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #55968] [octave forge] (symbolic) Incorrect si


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #55968] [octave forge] (symbolic) Incorrect simplify to sinc function
Date: Mon, 25 Mar 2019 23:52:12 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36

Follow-up Comment #10, bug #55968 (project octave):

@Z.M. It depends what you mean by "work". In your original example, the result
of rewrite will be a symbolic variable. If you 'disp' that variable, it will
print itself as if it were "sinc(w/10)"


      ⎛ω ⎞
  sinc⎜──⎟
      ⎝10⎠


You will have to ignore the way that it looks, because Python is generating
that appearance.

But if you evaluate that function, or turn it into an inline Octave function,
it will evaluate to the right thing in terms of Octave's normalized sinc
function.


>> double (subs (fn, 10))
ans =  0.84147
>> f = matlabFunction (fn)
f =

@(omega) sinc (omega / (10 * pi))

>> f(10)
ans =  0.84147


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55968>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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