Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Integrate...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44298] Re: Integrate...
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 4 Nov 2003 03:24:51 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <bo5sl7$nr$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

don't mix approximated numbers like 1.0 with symbolic
computations.
Use Rationalize[] to make exact numbers
if you only have floating points.

Regards
  Jens

Sampo Smolander wrote:
>
> Does anybody know why
>
>    Integrate[Abs[1.0*Cos[r] + 1.0*Sin[r]], {r, 2.35, 2.36}]
>
> gives
>
>    -2.82839
>
> whereas without those 1.0's,
>
>    Integrate[Abs[Cos[r] + Sin[r]], {r, 2.35, 2.36}]
>
> gives the correct
>
>    0.000037373
>
> ?
>
> (I'm running Mathematica 4.1 on win98.)
>
> --
> Sampo Smolander ............... http://www.cs.helsinki.fi/u/ssmoland/
> Rolf Nevanlinna Institute, University of Helsinki ...................

~
~


  • Prev by Date: Re: V2.2.2DOS XMS vs EMS
  • Next by Date: Re:simple equation system -- crashing M5?
  • Previous by thread: Re: V2.2.2DOS XMS vs EMS
  • Next by thread: Re: Integrate...