Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Calculator

Author
Message
King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 23rd Dec 2003 02:56
I know, I know, this has been done before but I want to do my own.

I'm just mucking around with the maths commands used in darkbasic and here is what I have so far:



I think i've put the problem as a rem in there but:

I'm doing a thing where the program returs Arc Cosine, Arc Sine, Arc Tangent (I have actually not a clue what these are or what they are used for) and they worked fine once but then I tried to do Hyperbolics and the Arcs dont work properly.

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 23rd Dec 2003 13:41
It's alright, i've sorted it all out now.

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 23rd Dec 2003 14:50
explore functions bro, they will save you a tonne of repetition


King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 23rd Dec 2003 21:14
hi, thx for the advice.

Can anyone tell my the best way to do powers?

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 24th Dec 2003 10:16
the ^ operator:
x^3 = x cubed

King Arthur
22
Years of Service
User Offline
Joined: 31st Dec 2002
Location:
Posted: 24th Dec 2003 13:26
oh ok, thx!

"I love to go down to the school yard and watch all the children run jump and scream... I don't think they know I'm only using blanks."
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 29th Dec 2003 02:45
Quote: "Can anyone tell my the best way to do powers?"


i know that this is really not the best way to do it but look in the code base in the dbc section under maths/physics and there should be a calculator there by me
or
here is the powers bit:


see, i told you it wasn't the best way to do it but it works

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 29th Dec 2003 05:59
Sure... but why?

And what about negative and fractional powers?



Login to post a reply

Server time is: 2025-05-22 06:00:33
Your offset time is: 2025-05-22 06:00:33