| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
info about cos,pi,log etc...
hello i'am looking for some info, links about the cos,pi,log etc.. functions. info like: what is cos (the math-background) but also how to code (ml or basic) a routine that generates tables..
i know it is common knowledge.. but i never used it...
bye
Testa
|
|
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
http://www.google.de/search?client=firefox-a&rls=org.mozilla%3A..
http://www.google.de/search?hl=en&client=firefox-a&rls=org.mozi..
http://www.google.de/search?hl=en&client=firefox-a&rls=org.mozi..
10 step=2*pi/256: rem sine will loop after 256 steps
15 for angle=0 to 2*pi step s
20 value=sin(angle)*32+32: rem sine values will range between 0 and 64
25 poke mem+x,value
30 x=x+1
35 next angle |
| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
yeah.. so i don't need any complex and long basic routines to generate a table... also thanks for the links...
|
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
you can also generate sines in the niftier cross assemblers, or use c64 or pc tools to do that. wix bouncer is the best imho and it exists on both platforms. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
imho every coder should write atleast one of these table generators himself =) good exercise anyway :)
and yeah, for some basic math stuff, use the force^H^H^H^H^Hgoogle :) in this case, even wikipedia has some ok info :) |
| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
well i must admit that i'am not so good with pc,s and their tools... i am a pc lamer i'am afraid...
but i hope to suprise you one day with a nice c64 production .
i'am working on it... i realy like it to figure out stuff and creating something. and i think some knowledge about
cos, log, pi is a must.. coding the c64 is all about learning and making progress and don't be afraid to ask something... it is fun!
greetings..
Testa |
| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
i forgot to say.. to make this topic more complete, can someone give me a list/link of all these (c64 kernal) math-fuctions (i don't know the right terms) ....
i mean the c64 has a cos function, a pi function how many functions do we have on the c64....
|
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
http://www.infinite-loop.at/Power64/Documentation/Power64-ReadM..
SIN - Sine (Argument in Radians)
COS - Cosine (Argument in Radians)
TAN - Tangent (Argument in Radians)
ATN - Arcus Tangent (Result in [-π/2 .. π/2])
EXP - Exponent (ex where e = 2.71828183...)
LOG - Natural Logarithm
SQR - Square Root
ABS - Absolute Value
SGN - Sign
INT - Integer (Truncate to greatest integer less or equal
RND - Random Number in [0.0 .. 1.0]
(google keywords: c64 basic math functions)
You'll probably find valuable informations in the appendix area of this page.
more general infos on c64 codings:
http://codebase64.org/doku.php (check C= hacking, and discovery magazines here, essential and step by step howtos on lot of sutffs: http://codebase64.org/doku.php?id=magazines:start)
http://codebase64.org/doku.php?id=links:start
http://www.the-dreams.de/aay.html
http://www.geocities.com/profdredd/cprogram/cprogram.html (see under online resources)
http://pc.sux.org/files/vic-article_html_engl_vic_article_1.pdf (painfully throughoutful documentation of the video chip) |
| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
Yeah man... you rock.. thats what i'am talking about...
thanks a lot for all the information and stuff....
this is what i'am looking for...
cool!
|
| |
Steppe
Registered: Jan 2002 Posts: 1510 |
Whoever you are, get out of Oswald's brain and return to your alien planet! ;D |
| |
Turtle Account closed
Registered: Jan 2002 Posts: 70 |
All your skills are belong to us... |