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

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

[Octave-bug-tracker] [bug #54934] [octave forge] (symbolic) jacobian


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #54934] [octave forge] (symbolic) jacobian
Date: Thu, 1 Nov 2018 15:07:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

Update of bug #54934 (project octave):

                Category:         Octave Function => Octave Forge Package   
                  Status:                    None => Need Info              
                 Release:                   4.2.2 => dev                    
                 Summary:          Using jacobian => [octave forge] (symbolic)
jacobian

    _______________________________________________________

Follow-up Comment #1:

You haven't given jacobian a second argument to tell it what to take the
derivative with respect to. In this case, the function calls 'symvar' on your
input.

Since the input is simply an array of variables, symvar is a permutation of
those same variables:


>> symvar ([r, phi, theta])
ans = (sym) [φ  r  θ]  (1×3 matrix)
>> symvar ([r, theta, phi])
ans = (sym) [φ  r  θ]  (1×3 matrix)


So the jacobian is taken with respect to [phi, r, theta], at least on my
system with SymPy 1.3:


>> jacobian ([r, theta, phi], [phi, r, theta])
ans = (sym 3×3 matrix)

  ⎡0  1  0⎤
  ⎢       ⎥
  ⎢0  0  1⎥
  ⎢       ⎥
  ⎣1  0  0⎦



Does Matlab's 'jacobian' do something different in this case?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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