0
|
4180 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
GROUPS:

# Defining a function (Derivative) as a variable

Posted 9 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 ]] 2 Replies
Sort By:
Posted 9 years ago
 Thank you sir. It was a great help.
Posted 9 years ago
 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: 