Graphing Calculator
Moderators: Shine, Insert_witty_name
Graphing Calculator
Hello everyone...as my first Lua project...i wanted to make a graphing calculator for Lua for my PSP so i can use this in school...is this is a hard project? i have read the tut's but i dont know where to start...has this already been tried/made..? thanks in advance...
ok. there is a calculator project inside the luaplayer package.
i'd start by modifying/adding things to that one.
Then you learn easily how to
- read virtual buttons
- evaluate calculations
- print results
- use colors
- make plottings
- update the screen
- exit the app
For available math. operations like
- math.sin
- math.log
- math.floor, etc.
see lua manual from the web.
If you need a qwerty keyboard for your calculator (to have a Sharp or TI-like machine) just use the plotFosk and readFosk routines from F.o.s.k.
that's it.
i'd start by modifying/adding things to that one.
Then you learn easily how to
- read virtual buttons
- evaluate calculations
- print results
- use colors
- make plottings
- update the screen
- exit the app
For available math. operations like
- math.sin
- math.log
- math.floor, etc.
see lua manual from the web.
If you need a qwerty keyboard for your calculator (to have a Sharp or TI-like machine) just use the plotFosk and readFosk routines from F.o.s.k.
that's it.
can you point me to other tutorials for programming..also..is there a list of commands somewhere to show wat they do and how to do it...i cant even get the drawLine to work...? thanks for reply....
drawLine(a,b,c,d)
wat should a b c d do? i thought it would be x1,y1,x2,y2, then it draw a line from point 1 to point 2 but that doesnt seem to be it...thank you
drawLine(a,b,c,d)
wat should a b c d do? i thought it would be x1,y1,x2,y2, then it draw a line from point 1 to point 2 but that doesnt seem to be it...thank you
screen:drawLine(x1,y1,x2,y2,color)
x1 and y1 is the begining coordinate, x2 and y2 are the end coordinate
Oh, and I sorta made something like what you want. Its a grapher, but you need to edit the code to change what it graphs.
http://forums.qj.net/showthread.php?p=237717
x1 and y1 is the begining coordinate, x2 and y2 are the end coordinate
Oh, and I sorta made something like what you want. Its a grapher, but you need to edit the code to change what it graphs.
http://forums.qj.net/showthread.php?p=237717