Message Boards Message Boards

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

Differentiate a function for a game theory application?

Posted 8 years ago

I've defined the following function for a game theory application I'm working on:

a[q_ s1_ s2_] := ((1 - q + s1*(1 + q*s2))/(1 + s2))

When I differentiate with respect to s1 like this,

D[a[q, s1, s2], s1]

Mathematica simply returns my command. It does not give me an error message. What's going on? I've already done this derivative by hand, but I have many more equations like this, so I'd prefer to have the computer spit them out for me.

POSTED BY: Levi Crews
2 Replies

Missing commas in function definition.

In[11]:= a[q_, s1_ , s2_] := ((1 - q + s1*(1 + q*s2))/(1 + s2))

In[12]:= D[a[q, s1, s2], s1]

Out[12]= (1 + q s2)/(1 + s2)
POSTED BY: S M Blinder
Posted 8 years ago

Hello, the definition of your function is wrong, because missing commas , I'll share it with corrections , plus a picture so you can see that actually works

a[q_ , s1_, s2_] := ((1 - q + s1*(1 + q*s2))/(1 + s2))

D[a[q, s1, s2], s1]

Here is the picture!!!!

corrections

POSTED BY: Luis Ledesma
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