Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1476

Re: Problem: Approximate complex values in Mathematica 8.0.1

From DrMajorBob <btreat1@austin.rr.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Problem: Approximate complex values in Mathematica 8.0.1
Date 2011-04-05 10:42 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <inermf$j5k$1@smc.vnet.net> (permalink)

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Problem: Approximate complex values in Mathematica 8.0.1 DrMajorBob <btreat1@austin.rr.com> - 2011-04-05 10:42 +0000

csiph-web