Skip to content

Commit

Permalink
Chain rule 1 - The derivatives of e^(ln x) and ln(e^x) should simplif…
Browse files Browse the repository at this point in the history
…y to 1. Fixes Khan#8317.
  • Loading branch information
hans committed Dec 29, 2011
1 parent a36b9bd commit 4168ef6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion exercises/chain_rule_1.html
Expand Up @@ -21,7 +21,13 @@
<var id="OUTER_WRONG_2">randFromArray( OUTER.wrongs )</var>
</div>

<var id="DERIVATIVE">expr(["*", OUTER.ddxF, INNER.ddxF])</var>
<var id="DERIVATIVE">
( ( OUTER.f[0] === '^' &amp;&amp; OUTER.f[1] === 'e' &amp;&amp; INNER.f[0] === 'ln' )
|| ( OUTER.f[0] === 'ln' &amp;&amp; INNER.f[0] === '^' &amp;&amp; INNER.f[1] == 'e' ) )
? '1'
: expr(["*", OUTER.ddxF, INNER.ddxF])
</var>

<var id="NOTATION">funcNotation("x")</var>
</div>

Expand Down

0 comments on commit 4168ef6

Please sign in to comment.