funky.tcl: a small graph display program

Mathematical tools, physics simulators, CAD, CNC, etc.
Post Reply
Message
Author
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

funky.tcl: a small graph display program

#1 Post by muggins »

this program displays a random selection of graphed functions. relevant to high school students studying maths, or people with calculi deposits in their brain. extract to /, then type funky to start. click ? to display next graph. if you're curious, open in a text editor to see tcl code.
Attachments
funky.jpg
(13.18 KiB) Downloaded 728 times
funky.zip
(1.82 KiB) Downloaded 593 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#2 Post by greengeek »

I don't seem to have the 'wish' interpreter which this appears to need. Tried changing it to bash but no joy. Do any puppies have 'wish' preinstalled?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#3 Post by Semme »

No, but you probably have cswish or some type of tclsh bin aboard. :wink:

Depending on where it's looking, you need *wish* symlinks in /bin and /usr/bin back to one of those bins.

http://stackoverflow.com/questions/1321 ... for-tcl-tk

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#4 Post by greengeek »

Thanks Semme - turns out I dont have cswish but I do have tclsh. Seems that tclsh is a symlink to /usr/bin/jimsh so I tried creating a symlink to jimsh and called it "wish".

Now if I try to run funky in a terminal it says:

Code: Select all

# funky
invalid command name "errorInfo"
# 
Might be a no-go for me.

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

Maybe this pet are good.

#5 Post by mister_electronico »

I made these pets and I work well with most programs:

The only change in all headers:

#!/usr/bin/wish

For

#!/usr/local/bin/wish8.5
#! /bin/env tclsh

I no know much about tcl - tk , But I would like some to open a topic about tcl-tk.

How interesting your program muggins.

This are the Pets.

http://www.mediafire.com/download/zu1iu ... 7-i486.pet


http://www.mediafire.com/download/7t3os ... 7-i486.pet


There is a very interesting web

http://wiki.tcl.tk/1291%20


Greetings

________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.c ... -homemade/

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

GG, my link and ME's both suggest the same as to the binaries name.

System search >> "wish"

Googling would have turned up the same site >> http://wiki.tcl.tk/

==

How peeps uncover this old sh_t I'll never know..
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#7 Post by greengeek »

Semme wrote:How peeps uncover this old sh_t I'll never know..
Well, I stumbled across this thread while I was trying to find some program that would allow me to convert physical co-ordinates into a mathematical formula. My son has made a model of a new rotary motor that he has designed and we have made measurements of the housing and I have graphed the results (which show a compound sine or cos wave trend) but I want to know how to define that shape more exactly by converting those measurements into an exact mathematical formula.

I know that some CNC machines can do the required integration if provided with a sufficient number of co-ordinates, but it's expensive and I'm not totally convinced of the accuracy of our measurements yet. I really feel we won't be ready to pay for the expertise of CNC experts until we have successfully defined how the movement of the mechanical components (and variations of size of each component) translates into the shape of the housing.

So - here I am looking at any program that handles graphing capabilities....

Thanks for your help BTW - what exactly did you mean by "System search >> "wish""
Are you referring to a Pfind search? (I tried pfind but saw no trace of wish)
cheers!

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: Maybe this pet are good.

#8 Post by greengeek »

mister_electronico wrote:How interesting your program muggins.
This are the Pets.
Hi mr_electronico - thank you very much for the pets - they were successful to allow me to run Funky although I also had to make a symlink to "wish8.5" before it would run. I have now made a pet which includes the following:

- Funky grapher
- Tcl
- Tk
- missing symlink to "wish"

This pet worked for me on my Slacko 5.6 derivative but who knows it may be ok for some other pups too.

Download link:
http://www.mediafire.com/download/2ni0k ... gg-0.1.pet

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#9 Post by Semme »

Yes GG, Pfind. It's possible the wish binary wasn't yet system-side when you searched.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

Post Reply