FindROot and substitutions
- To: mathgroup at smc.vnet.net
- Subject: [mg89811] FindROot and substitutions
- From: Aaron Fude <aaronfude at gmail.com>
- Date: Sat, 21 Jun 2008 05:30:31 -0400 (EDT)
Hi, I have found a workaround for this problem, but I would like to understand how Mathematica wants you to think so I'm asking the question anyway. Why does "bad" not work, while "good" works? g := x z; bad[z_] := FindRoot[ g == 5, {x, -10, 10 }]; bad[5] good[k_] := FindRoot[ g == 5 /. z -> k, {x, -10, 10 }]; good[6] Thanks! Aaron
- Follow-Ups:
- Re: FindROot and substitutions
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: FindROot and substitutions