Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > info about cos,pi,log etc...
2008-09-30 21:50
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



2008-09-30 22:27
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
2008-09-30 22:32
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...

2008-09-30 22:44
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.
2008-09-30 22:59
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 :)
2008-09-30 23:06
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
2008-09-30 23:40
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....




2008-10-01 00:37
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)
2008-10-01 01:24
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!

2008-10-01 16:21
Steppe

Registered: Jan 2002
Posts: 1510
Whoever you are, get out of Oswald's brain and return to your alien planet! ;D
2008-10-01 20:20
Turtle
Account closed

Registered: Jan 2002
Posts: 70
All your skills are belong to us...
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
DeMOSic/MS^LSD^ONS
Holy Moses/Role
Fred/Channel 4
Didi/Laxity
Bieno/Commodore Plus
CreaMD/React
Guests online: 110
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.057 sec.