ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
275 B

  1. 100 REM PLOT A NORMAL DISTRIBUTION CURVE
  2. 120 DEF FNN(X) = EXP(-(X^2/2))/SQR(2*3.14159265)
  3. 140 FOR X = -2 TO 2 STEP .1
  4. 150 LET Y = FNN(X)
  5. 160 LET Y = INT(100*Y)
  6. 170 FOR Z = 1 TO Y
  7. 180 PRINT " ";
  8. 190 NEXT Z
  9. 200 PRINT "*"
  10. 210 NEXT X
  11. 220 END