Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Math Function Draw-er
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
beard0




PostPosted: Sun Oct 24, 2004 12:48 pm   Post subject: 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.


function.t
 Description:
The Function Module

Download
 Filename:  function.t
 Filesize:  10.95 KB
 Downloaded:  297 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Sun Oct 24, 2004 6:10 pm   Post subject: (No subject)

Great work beard0!! Claping

code:

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




PostPosted: Tue Oct 26, 2004 8:54 am   Post subject: (No subject)

Wow! 386 lines very good the most I've ever done was 134 Crying or Very sad

Im working on it though!
beard0




PostPosted: Tue Oct 26, 2004 12:27 pm   Post subject: (No subject)

How U Doin wrote:
Wow! 386 lines very good the most I've ever done was 134 Crying or Very sad

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. Confused
Tony




PostPosted: Tue Oct 26, 2004 12:36 pm   Post subject: (No subject)

How U Doin wrote:
most I've ever done was 134

ok... can you write pong or snake in 20 lines of code
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: