Message Boards Message Boards

0
|
4431 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Defining a function (Derivative) as a variable

Posted 10 years ago

Hi,

Generally we write expressions as-- x = 3; y = 8; z = x+y; and we get the answer (in this case) 11

The same thing I want to write as shown in the picture For my problem I have these therms values as given inputs and these will be used further in some calculations. Please tell me how I can use (e.g. dy/dx) as a symbol for input like we use x,y,z etc. [[ I know that these are defined functions and we cannot use it as a symbol but tell me if there is any way to do this ]]

enter image description here

2 Replies

Thank you sir. It was a great help.

If you are only interested in doing the calculation, without being worried if the differential symbols can or cannot be used, one possible way to circumvent this is by using rules. This may not be what you really expect, but it may be a starting point for what you want.

dp1 = \[DifferentialD]Subscript[P, 1]/\[DifferentialD]x -> 3;
dp2 = \[DifferentialD]Subscript[P, 2]/\[DifferentialD]x -> 8;
\[DifferentialD]P/\[DifferentialD]x == \[DifferentialD]Subscript[P, 
    1]/\[DifferentialD]x + \[DifferentialD]Subscript[P, 
    2]/\[DifferentialD]x /. {dp1, dp2}

The code above was supposed to look like:

enter image description here

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract