Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1995
*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 1995

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

Search the Archive

Problems with NIntegrate

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg1645] Problems with NIntegrate
  • From: Ian.Barringer at brunel.ac.uk (Drib)
  • Date: Sat, 8 Jul 1995 04:25:31 -0400
  • Organization: Brunel University, Uxbridge, UK

HI,
	I have come up against a problem in Mathematica I hope someone
	in this group may be able to explain to me.
	I have defined a function as follows;
	fp[p_]=Sqrt[(x^2-1)/(p^2-x^2)]
	which I wish to integrate numerically. This I can do with
	integer values of p:
	NIntegrate[fp[6],{x,1,6}]
	= 5.69279
	However, if I set p as a real value, such as:
	NIntegrate[fp[6.2],{x,1,6.2}]
	I get an inexact arithmetic error, and no answer.

	Does anybody know why this is happening, and if it's possible
	to repair ?
	If the problem was caused by the singularity a x=p then surely
	this would effect both integer and real values of p.
	I have consulted the manual, but if the answer is in there I can't
	find it !

	Any help would be gratefully received.

	Thanks in advance Ian.

-- 
--------------------- Ian.Barringer at Brunel.ac.uk -----------------
If you are not entirely satisfied with the contents of this mail,
please return the complete item to the above address, stating when
and where it was received, and I will be delighted to send you a
                              new one.


  • Prev by Date: Re: MathLink documentation
  • Next by Date: Re: Q: Random[]
  • Previous by thread: Re: Mathematica --> C convertor, anyone?
  • Next by thread: Re: Problems with NIntegrate