home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!torn!utzoo!dciem!jorchard
- From: jorchard@dciem.dciem.dnd.ca (Jeff Orchard)
- Newsgroups: comp.sys.hp48
- Subject: Passing Functions as Parameters
- Message-ID: <6596@dciem.dciem.dnd.ca>
- Date: 9 Nov 92 20:58:44 GMT
- Reply-To: jorchard@dretor.dciem.dnd.ca
- Distribution: na
- Organization: Defence and Civil Institute of Environmental Medicine
- Lines: 21
-
- I have a question that seems simple, but I can't find any reference in
- the HP-48 manual.
-
- I want to pass a function into a program that uses the integrator.
- I know how to pass things into local variables, but in order to
- numerically integrate the function it seems to me that I
- can't just pass 'F'; I have to pass 'F(X)' (so that I can integrate
- with respect to X).
-
- I would like to be able to put 'F' in level 1 and then execute the
- program. I DON'T want to have to put 'F(X)' on the stack... because that
- would force me to integrate with respect to X. It would be nice if
- I could integrate with respect to a local variable.
-
- OR... my problems would be solved if I could change this... "F(X)"
- to this... 'F(X)'
-
- Any ideas would be appreciated. Thanks!
-
- Jeff Orchard jorchard@dretor.dciem.dnd.ca
- Dept. of National Defence, Toronto, Canada
-