home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp48 / 5642 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.2 KB

  1. Path: sparky!uunet!utcsri!torn!utzoo!dciem!jorchard
  2. From: jorchard@dciem.dciem.dnd.ca (Jeff Orchard)
  3. Newsgroups: comp.sys.hp48
  4. Subject: Passing Functions as Parameters
  5. Message-ID: <6596@dciem.dciem.dnd.ca>
  6. Date: 9 Nov 92 20:58:44 GMT
  7. Reply-To: jorchard@dretor.dciem.dnd.ca
  8. Distribution: na
  9. Organization: Defence and Civil Institute of Environmental Medicine
  10. Lines: 21
  11.  
  12. I have a question that seems simple, but I can't find any reference in
  13. the HP-48 manual.
  14.  
  15. I want to pass a function into a program that uses the integrator.
  16. I know how to pass things into local variables, but in order to
  17. numerically integrate the function it seems to me that I
  18. can't just pass 'F'; I have to pass 'F(X)' (so that I can integrate
  19. with respect to X).
  20.  
  21. I would like to be able to put 'F' in level 1 and then execute the
  22. program.  I DON'T want to have to put 'F(X)' on the stack... because that
  23. would force me to integrate with respect to X.  It would be nice if
  24. I could integrate with respect to a local variable.
  25.  
  26. OR... my problems would be solved if I could change this... "F(X)"
  27. to this... 'F(X)'
  28.  
  29. Any ideas would be appreciated.  Thanks!
  30.  
  31. Jeff Orchard    jorchard@dretor.dciem.dnd.ca
  32. Dept. of National Defence, Toronto, Canada
  33.