
-----------------------------------
beard0
Sun Oct 24, 2004 12:48 pm

Math Function Draw-er
-----------------------------------
This is a module I made to draw math functions with various parameters that you can set.  Parameters can be set using separate functions or in a View.Set like manner of string elements separated by commas, assigning with colon, and assigning multiple values with semi-colon.  A more thorough readme to be posted.  There is an example at the end of module.

-----------------------------------
Delos
Sun Oct 24, 2004 6:10 pm


-----------------------------------
Great work beard0!! :clap: 


fcn square (x : real) : real
    result cos (Math.PI / x)
end square
var f3 := Function.New (square, "Area:0;0;" + intstr (maxx) + ";" + intstr (maxy) +
    ",Range:5;5" +
    ",Ticks:1;1")

Function.Show (f3)


Me likes this one!

Solid module, great use of parameters.  Now how about you add domain specifics for the function as well!  Then compositions.  And then dy/dx capabilities!

+bits

-----------------------------------
How U Doin
Tue Oct 26, 2004 8:54 am


-----------------------------------
Wow! 386 lines very good the most I've ever done was 134  :cry: 

Im working on it though!

-----------------------------------
beard0
Tue Oct 26, 2004 12:27 pm


-----------------------------------
Wow! 386 lines very good the most I've ever done was 134  :cry: 

Im working on it though!

How U Doin: more lines doesn't necessarily mean better.  In fact, the less lines that accomplish the same thing is better. :?

-----------------------------------
Tony
Tue Oct 26, 2004 12:36 pm


-----------------------------------
 most I've ever done was 134
ok... can you write pong or snake in [url=http://www.compsci.ca/v2/viewtopic.php?t=5539]20 lines of code
