🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math.num-analysis
Article #433

Integration of Step function algorithm/code any?

#433
From: Muyu Guo
Date: Fri, 14 Aug 1992 04:09
18 lines
901 bytes
I am having trouble doing the integral using either qtrap
or qsimp from Numerical Recipes:

    b
    /
    | f(x)dx,      	with a < 1, b > 2
    /
    a
   			and f(x) = 1 (1 <= x <= 2)
				 = 0  otherwise

For example a=0, b=4 or the like the results were nonsense.

Does anyone know if there is a good way to get thru this?
Thanks a million for your attention.
-- 
--
Muyu Guo
Technical Details
Message-ID: <1992Aug14.040957.16304@Princeton.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!mips!darwin.sura.net!jvnc.net!princeton!burn.Princeton.EDU!muyu

Show Full Headers
Complete Article Headers
Newsgroups: sci.math.num-analysis
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!mips!darwin.sura.net!jvnc.net!princeton!burn.Princeton.EDU!muyu
From: muyu@burn.Princeton.EDU (Muyu Guo)
Subject: Integration of Step function algorithm/code any?
Message-ID: <1992Aug14.040957.16304@Princeton.EDU>
Originator: news@nimaster
Sender: news@Princeton.EDU (USENET News System)
Nntp-Posting-Host: burn.princeton.edu
Organization: Princeton University
Date: Fri, 14 Aug 1992 04:09:57 GMT
Lines: 18