home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!hela.iti.org!cs.widener.edu!dsinc!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!jmp1
- From: jmp1@ns1.cc.lehigh.edu (JEFFREY MICHAEL PARSONS)
- Newsgroups: sci.math.symbolic
- Subject: Help with user defined functions in Maple.
- Message-ID: <1992Dec17.060755.53708@ns1.cc.lehigh.edu>
- Date: 17 Dec 92 06:07:55 GMT
- Organization: Lehigh University
- Lines: 13
-
- I tried defining a function in Maple V r1.1 like this:
-
- f := proc(x) if x<0 then -1 else 1 fi; end;
-
- I could then type f(3) or f(-100) and get the correct result. The problem is
- that I can't integrate it, etc. I always get:
-
- Error, (in f) cannot evaluate boolean.
-
- Is there a better way to be doing this kind of thing?
-
- Thanks.
- --
-