home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / education / b / scifunc / !SciFunc / !Help next >
Text File  |  1994-07-11  |  5KB  |  108 lines

  1.  
  2.                     ----------------------------------
  3.                           Help file for !SciFunc
  4.  
  5.                             © Andrew Ayre 1994
  6.                     ----------------------------------
  7.  
  8. !SciFunc supports Acorn's !Help application.
  9.  
  10. Introduction...
  11.  
  12.   In the Public Domain is a suite of programs called SciApps, which allow
  13. you to produce scientific graphs. Each graph can have a model fitted to it,
  14. so things like lines of best fit can be calculated. SciFunc complements
  15. those applications.
  16.  
  17.   The coordinates for the points on a graph are entered using the SciEdit
  18. application one by one, then saved in a SciGraph file.
  19.   This is fine if you are entering the results of experiments, but if you
  20. want to draw the graph of Y=X² or Y=ln |4.5X³-3.1X²+0.75X| then you have to
  21. manually calculate the y value for each value of x.
  22.   SciFunc does this for you. You simple enter the function and a few other
  23. details, and a SciGraph file is produced for you, ready to be used by the
  24. other programs in the SciApps suite.
  25.  
  26.   Please note: this application is not much use without the SciApps suite
  27. of programs.
  28.  
  29.   SciFunc contains a standard list of functions which are built into BASIC
  30. V, eg. ABS(), EXP(), LN(), RND(). You can also define your own thus
  31. simplifying the amount that needs to be entered into the program.
  32.  
  33. Using...
  34.  
  35.   Once loaded click on the icon to bring up the main window. Enter the
  36. function into to the writeable icon (theres no need to enter the 'Y=' bit).
  37.  
  38.   Specify the range of x values that will be calculated by entering the
  39. minimum and maximum values of x into the next two writeable icons.
  40.  
  41.   In the last writeable icon, enter the size of the step (the amount that x
  42. will be increased by each time a calculation has been done).
  43.  
  44.   Press Return or click on Calculate. If you have used SIN, COS or TAN in
  45. the function, then you will be asked if you want to use Radians or Degrees.
  46. Once you have clicked on the relevent radio icon, click on OK.
  47.  
  48.   A standard save box will now appear. Drag the icon to a filer window. If
  49. all is well, the file will be saved, ready to be used by !SciGraph and
  50. !SciModel. 
  51.  
  52.   If you have used LN or LOG in the function and the minimum value for x is
  53. zero or less, then the function might be uncalculatable. The saving will be
  54. aborted.
  55.  
  56.   Clicking on 'Clear' in the main window will empty the writable icons.
  57.  
  58.   To aid you in entering functions, SciFunc has a menu containing a list of
  59. standard functions. This is obtainable by clicking (with SELECT) on the
  60. little menu icon to the right of the writeable icon where the function goes.
  61.  
  62.   All the functions are standard ones that are built into BASIC V. You can
  63. remove individual ones or change the order of them by editing the
  64. 'Functions' text file inside the application directory. You can also define
  65. your own custom functions. Two examples ( called FULLRECT(X) and BIGGER(X) )
  66. are at the bottom of the menu, and when used will make all the negative
  67. parts of a sine graph positive (full wave rectification). Custom functions
  68. must be left exactly as shown in the menu, but can be put inside other
  69. built-in functions. eg:
  70.  
  71.     FULLRECT(2X)     - won't work
  72.     INT(FULLRECT(X)) - will work
  73.  
  74. The functions file...
  75.  
  76.   This file contains all the functions that appear on the menu. You can edit
  77. this to suit yourself, but there are a few things to be noted:
  78.  
  79. (1) Comments must start with a '*', and must come at the start of the file
  80. only.
  81. (2) The standard functions must come immediately after the comments and
  82. before the custom functions.
  83. (3) Lines that define custom functions must start with a '>' and come at the
  84. end of the file. The equals sign must have a space either side of it, with
  85. the text to appear on the menu on the left, and the definition of the actual
  86. function on the right. There must be no spaces between the > and the name of
  87. the function. As demonstrated by the BIGGER(X) function, the definitions can
  88. contain other custom functions.
  89. (4) Don't forget to make sure that the file ends with a Return.
  90.  
  91. Some more things to be noted:
  92.  
  93.   Example: say you wanted to enter the function Y = 4X². You can't just
  94. enter it like that because BASIC won't like it. Instead you have to enter it
  95. like: Y = 4*(X^2). Don't forget to put the brackets in the right place, Y =
  96. (4*X)^2 is not the same thing. 
  97.  
  98.   You can use PI in the function, but not in the min, max and step fields.
  99. For those you will have to enter something like 3.1415927.
  100.  
  101.  
  102. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  103.  
  104. This software may be freely copied as long as none of the files are altered
  105. or tampered with, and no profit is made.
  106.  
  107. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  108.