Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

How to avoid overflow or underflow in mathematica?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88648] How to avoid overflow or underflow in mathematica?
  • From: quantumfang <membrane at 163.com>
  • Date: Sun, 11 May 2008 15:14:41 -0400 (EDT)

It's well known that Mathematica can do evaluation to arbitrary precision. But I don't know how to avoid the following trouble in computing:

Ef = 0.;
mu=0.;
KBT = 1.*10^-10;
FL[omega_Real] := 1./(1. + E^((omega - mu - Ef)/KBT));

the error message shows

General::ovfl: Overflow occurred in computation. >>
General::unfl: Underflow occurred in computation. >>


  • Prev by Date: Re: Request for Collective Wisdom...
  • Next by Date: Re: PlotLegend not working properly in my Mathematica 6
  • Previous by thread: Re: Parameter conditions
  • Next by thread: Re: How to avoid overflow or underflow in mathematica?