Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1476 > unrolled thread
| Started by | DrMajorBob <btreat1@austin.rr.com> |
|---|---|
| First post | 2011-04-05 10:42 +0000 |
| Last post | 2011-04-05 10:42 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Problem: Approximate complex values in Mathematica 8.0.1 DrMajorBob <btreat1@austin.rr.com> - 2011-04-05 10:42 +0000
| From | DrMajorBob <btreat1@austin.rr.com> |
|---|---|
| Date | 2011-04-05 10:42 +0000 |
| Subject | Re: Problem: Approximate complex values in Mathematica 8.0.1 |
| Message-ID | <inermf$j5k$1@smc.vnet.net> |
Or, as a workaround, Wolfram could fix their code and send out a patch.
Bobby
On Mon, 04 Apr 2011 05:29:05 -0500, Bob Hanlon <hanlonr@cox.net> wrote:
> As a workaround you could either Chop the input or output
>
> fnc = Interpolation[{{0, 0}, {2, 2}}, InterpolationOrder -> 1];
>
> fnc[Chop[N[I]/I]]
>
> 1.
>
> Chop[fnc[N[I]/I]]
>
> 1.
>
> or redefine the function definition to include Chop
>
> fnc = Interpolation[{{0, 0}, {2, 2}}, InterpolationOrder -> 1][Chop[#]]
> &;
>
> fnc[N[I]/I]
>
> 1.
>
> fnc = Chop[Interpolation[{{0, 0}, {2, 2}}, InterpolationOrder -> 1][#]]
> &;
>
> fnc[N[I]/I]
>
> 1.
>
>
> Bob Hanlon
>
> ---- dr DanW <dmaxwarren@gmail.com> wrote:
>
> =============
> On a second try, the 1. I/I example worked. However, fnc[N[I]/I] does
> not. I did find a fix for my immediate problem, but my point is that the
> behavior of Mathematica has changed, and it is more insidious than the
> way approximate values are displayed.
>
> Daniel
>
>
--
DrMajorBob@yahoo.com
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web