Post Reply 
Entering partial derivatives?
11-06-2014, 11:36 PM (This post was last modified: 11-07-2014 01:59 PM by Han.)
Post: #4
RE: Entering partial derivatives?
None of those work because your syntax is ambiguous. There is no way (from a software point of view) to tell if the substitution should be applied prior to executing the command diff() or after. While we all understand your intended meaning, such is the nature of the where function.

As for syntax, it is usually:

expression|x=value

or

expression|{x=value,y=value,…}

It appears that the where function gives precedence to substitution over evaluation of functions. On the other hand, subst() has reverse precedence.

Edit:

diff(x^2*y,x)|{x=r,y=s} produces 2*r*s

subst(diff(x^2*y),{x=1,y=2}) produces 4

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Entering partial derivatives? - DrD - 11-06-2014, 01:46 PM
RE: Entering partial derivatives? - Han - 11-06-2014, 03:11 PM
RE: Entering partial derivatives? - DrD - 11-06-2014, 10:06 PM
RE: Entering partial derivatives? - Han - 11-06-2014 11:36 PM
RE: Entering partial derivatives? - ww63 - 11-07-2014, 09:04 AM
RE: Entering partial derivatives? - Han - 11-07-2014, 02:00 PM
RE: Entering partial derivatives? - DrD - 11-07-2014, 11:32 AM
RE: Entering partial derivatives? - DrD - 11-07-2014, 12:14 PM
RE: Entering partial derivatives? - Han - 11-07-2014, 06:19 PM
RE: Entering partial derivatives? - DrD - 11-08-2014, 11:28 AM
RE: Entering partial derivatives? - Gilles - 11-08-2014, 02:16 PM
RE: Entering partial derivatives? - DrD - 11-08-2014, 03:48 PM
RE: Entering partial derivatives? - Gilles - 11-08-2014, 08:47 PM
RE: Entering partial derivatives? - DrD - 11-09-2014, 10:14 PM



User(s) browsing this thread: 1 Guest(s)