home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22801 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.2 KB  |  54 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!world!jhallen
  3. From: jhallen@world.std.com (Joseph H Allen)
  4. Subject: Re: DOS emulation
  5. Message-ID: <C0E5zx.DK0@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <1993Jan4.180603.60541@ns1.cc.lehigh.edu> <15529@hq.hq.af.mil>
  8. Date: Tue, 5 Jan 1993 17:31:08 GMT
  9. Lines: 43
  10.  
  11. In article <15529@hq.hq.af.mil> john@hq.af.mil writes:
  12. >
  13. >--
  14. >The gnu people are putting together a package called jacal.
  15. >This is a symbolic math processor.  I was looking at making a
  16. >troff2jackal and back again translator then patching the adrew ez
  17. >program eq to send the troff code to it for evaluation return and
  18. >display.  This would be a WYSIWIG (almost) way of evaluating
  19. >equations.
  20. >
  21. >Want to help? 
  22.  
  23. For a school project I made an X-windows symbolic math program.  I never fully
  24. completed the symbolic part of it, but the X interface is nice: as you type
  25. in an equation, it parses it and then pretty prints the parse-tree. 
  26. So you would get something like this:
  27.  
  28.  
  29. +----------------------------------------+
  30. |                   5                    |
  31. |            y =  -----                  |
  32. |                 9 * ?                  |
  33. +----------------------------------------+
  34. | y = 5/(9*_                             |
  35. +----------------------------------------+
  36.  
  37. Once an equation was entered, you could then do some simple symbolic
  38. operations on it: derivatives, rational simplifying, simple factoring and
  39. distributing.  You could also use the mouse to select a part of the
  40. equation, and have the operation occur only on the selected part.
  41.  
  42. The program also had 2-D graphics.
  43.  
  44. I can dig this up if you want to try to do something with it.
  45.  
  46. It's written entirely in C and Xlib.  Unfortunately I didn't know how to use
  47. the resource manager routines when I wrote it so my widgets aren't
  48. customizable.  That could be easily fixed though.
  49. -- 
  50. /*  jhallen@world.std.com (192.74.137.5) */               /* Joseph H. Allen */
  51. int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
  52. +r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2
  53. ]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}
  54.