MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Problem: Approximate complex values in Mathematica 8.0.1

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117937] Re: Problem: Approximate complex values in Mathematica 8.0.1
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Tue, 5 Apr 2011 06:42:19 -0400 (EDT)

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 at 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 at 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 at yahoo.com


  • Prev by Date: Take the Wolfram Demonstrations Challenge and win great prizes!
  • Next by Date: package construction
  • Previous by thread: Re: Problem: Approximate complex values in Mathematica 8.0.1
  • Next by thread: Re: Royalty free runtime for Mathematica