 Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki Blog Search Turing Chat Room Members
Math Question...Bits Rewarded       Author Message
Archi Posted: Mon Jul 28, 2003 11:43 pm   Post subject: Math Question...Bits Rewarded

45 bits to the one who gets this question correct.

The problem is as follows:

ax+by/m=d

Where, when
a=40 & b=35 d=52
a=46, b=40, d=63
a=54, b=43, d=75
a=62, b=48, d=88
a=70, b=55, d=105
a=78, b=64, d=125
a=86, b=75, d=144
a=94, b=88, d=171
a=102, b=103, d=201

Find x,y,m.
Note: x,y,m must be constant throughout the entire solution.    bugzpodder  Posted: Tue Jul 29, 2003 4:11 pm   Post subject: (No subject)

no solution Archi Posted: Tue Jul 29, 2003 4:19 pm   Post subject: (No subject)

hmm... Okey...well try this:

I have 9 weapons...I have designated a certian % chance to hit for each weapon. What I need though, is a formula which will work for each weapon and will take into account the players accuracy, and also the hit chance of the weapon.

Here are the number with the acc being that at the lowest lvl possible to equip the weapon.

Weap 1: a=40 & b=35 d=74%
Weap 3: a=46, b=40, d=77%
Weap 3: a=54, b=43, d=80%
Weap 4: a=62, b=48, d=83%
Weap 5: a=70, b=55, d=86%
Weap 6: a=78, b=64, d=89%
Weap 7: a=86, b=75, d=92%
Weap 8: a=94, b=88, d=95%
Weap 9: a=102, b=103, d=98%

This is for my hit/miss system where I will randomly pick a number between either 1-(a+b) or 1-100 depending on which has a valid solution.
The d value is what percent I want the player to hit. So for weapon 1, I want him to hit roughly 74% of the time. So the answer has to be greater than 74% of the numbers. bugzpodder  Posted: Thu Jul 31, 2003 12:22 pm   Post subject: (No subject)

take your ideal hit percentage of the weapon, multiply by the player's accuracy and some constant. so you need some kind of table that contains the information you gave me the_one Posted: Wed Apr 21, 2004 5:45 pm   Post subject: (No subject)

i dun get it....confused the_one Posted: Wed Apr 21, 2004 5:45 pm   Post subject: (No subject)

can ya teach? beard0  Posted: Fri May 28, 2004 9:21 am   Post subject: (No subject)

bugzpodder is right, no solution.

Evidence:
since y and m remain constant, make constant z=y/m
equation is now ax+bz=d

1) 40x+35z=53
2) 46x+40z=63

mult 1) by 1.15
46x+40.25z=59.8

Subtract new equation from 2) to get
0x-0.25z=3.2
-0.25z=3.2
z=-12.8

Substituting this into 1)
40x+35(-12.8)=52
40x-448=52
40x=500
x=12.5

These value in the third equation
d=54(12.5)+43(-12.8)=675-550.4=124.6
d is supposed to be 75.
Therefore, no solution. Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First        Page 1 of 1  [ 7 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: