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.

Newcomers DBPro Corner / Solving for a variable

Author
Message
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 17th Oct 2006 14:05
How would I do this? On paper it looks like this:


100=2d+10
90=2d
d=45



How would I solve for "d" in DB?

Thanks in advance.

Ummm...
Zergei
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 17th Oct 2006 15:52
How 'bout d=(100-10)/2

Further on my stuff at...
Crazy Programmer
AGK Developer
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Lost in AGK
Posted: 17th Oct 2006 17:13 Edited at: 17th Oct 2006 17:13
you would just write it down in code like you would in Algebra class...remember the old graphing calculaters well computers can do the same thing....Like what Zergei said is correct

so it would look like this






Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 18th Oct 2006 00:00
Thanks, but what if I wanted to give it problems on the fly?

Ummm...
Crit
18
Years of Service
User Offline
Joined: 24th May 2006
Location:
Posted: 18th Oct 2006 00:10
They had a coding challenge on parsing math problems not too long ago.
Lower Logic won.

http://www.dbp-site.com/challenges/maths-parser/lower-logic

CHESS ENCOUNTER
Demo
WIP

Login to post a reply

Server time is: 2024-09-25 11:18:03
Your offset time is: 2024-09-25 11:18:03