Opaque functions and fsolve / numerical methods
|
04-07-2021, 08:34 PM
Post: #1
|
|||
|
|||
Opaque functions and fsolve / numerical methods
Suppose I have an opaque f(x) on the reals. By "opaque" I mean, we don't peek at the function definition, we rely on evaluating it at specific reals. For the sake of example here is a definition to (not) peek at
Code: EXPORT OPAQUE(I) BEGIN Code:
Unsurprisingly, we cannot symbolically solve equations like OPAQUE(x)==9. But perhaps surprising, we cannot solve numerically either: Code:
The latter might be because of another annoyance, the function cannot be evaluated with subst: Code:
I suppose I can solve this graphically, but is there a more practical way to use the numerical methods than with fsolve? My theory is it's trying to pass some CAS type into function input and see if it can exploit the definition of OPAQUE somehow. However, since the function doesn't have a CAS "definition" the nonreal input is a "Bad argument type". But it's a mystery how to force the real input from a numerical solver... |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Opaque functions and fsolve / numerical methods - compaqdrew - 04-07-2021 08:34 PM
RE: Opaque functions and fsolve / numerical methods - roadrunner - 04-07-2021, 10:59 PM
RE: Opaque functions and fsolve / numerical methods - compaqdrew - 04-08-2021, 04:54 AM
RE: Opaque functions and fsolve / numerical methods - roadrunner - 04-08-2021, 12:03 PM
|
User(s) browsing this thread: 1 Guest(s)