The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Calculating 1st derivative with a parameter
Replies: 4   Last Post: Jun 14, 2012 10:34 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Christopher Creutzig

Posts: 323
Registered: 2/24/09
Re: Calculating 1st derivative with a parameter
Posted: Jun 14, 2012 10:34 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 06.05.12 22:14, Wojtek wrote:

> Unfortunately when doing it your way I get an error:
> ??? Error using ==> sym.sym>notimplemented at 2653
> Function 'lt' is not implemented for MuPAD symbolic objects.

That was new in 2012a, I believe. You should be able to use ?if
double(focValue) < 0.5? in earlier versions.

> Additionally when I try to display the value of dydx_val I get:
> dydx_val =
> -(289129866313728*D(ceil)(965535013052404736/3125))/125

I assume one of your input parameters (za, zb, zc, zd) contains a
symbolic ?ceil? expression then. That is not differentiable in the
function sense. You may be able to get further by adding


after defining dydx. Just double-check that the result in the end looks
reasonable. For the value you showed, that would result in zero ? if
that is not a good result, go back to your problem and clearly state
what the derivative of the ceiling function is supposed to be in this


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.