Click here to Skip to main content
15,915,702 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Aristid Papado14-Jun-10 17:06
Aristid Papado14-Jun-10 17:06 
AnswerRe: x^2+y^2+z^2=g^2 Pin
Kevin Drzycimski14-Jun-10 19:02
Kevin Drzycimski14-Jun-10 19:02 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Aristid Papado15-Jun-10 2:04
Aristid Papado15-Jun-10 2:04 
GeneralRe: x^2+y^2+z^2=g^2 [modified] Pin
Kevin Drzycimski15-Jun-10 2:09
Kevin Drzycimski15-Jun-10 2:09 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Aristid Papado15-Jun-10 3:37
Aristid Papado15-Jun-10 3:37 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Kevin Drzycimski15-Jun-10 4:14
Kevin Drzycimski15-Jun-10 4:14 
GeneralRe: x^2+y^2+z^2=g^2 Pin
kenfry1322-Jun-10 15:00
kenfry1322-Jun-10 15:00 
AnswerRe: x^2+y^2+z^2=g^2 Pin
Roger Wright15-Jun-10 3:21
professionalRoger Wright15-Jun-10 3:21 
Assuming your instructor uses the convention that variable quantities are represented by x,y and z, and that constant values are represented by the values a,b and c:

g(x,y,z) = x2 + y2 + z2 and
x2 + y2 = a2

x2 + z2 = b2

y2 + z2 = c2

You have three equations in three independent variables, and one dependent equation based on the values of the variables from the first three. Solving first the independent equations:

x2 + y2 = a2

-(x2 + z2) = b2

y2 - z2 = a2 - b2


y2 - z2 = a2 - b2

+(y2 + z2 = c2)

2y2 = a2 - b2 + c2


y2 = (a2 - b2 + c2)/2

Substituting,


y2 + z2 = c2

(a2 - b2 + c2)/2 + z2 = c2

a2 - b2 + c2 + 2z2 = 2c2

2z2 = -a2 + b2 + c2

z2 = (-a2 + b2 + c2)/2


Again substituting,

x2 + z2 = b2

x2 + (-a2 + b2 + c2)/2 = b2

2x2 = a2 + b2 - c2

x2 = (a2 + b2 - c2)/2

Finally, returning to the dependent equation and substituting the determinant vales:


g(x,y,z) = x2 + y2 + z2 = (a2 + b2 - c2)/2 + (a2 - b2 + c2)/2 + (-a2 + b2 + c2)/2 = (a2 + b2 + c2)/2
"A Journey of a Thousand Rest Stops Begins with a Single Movement"

GeneralRe: x^2+y^2+z^2=g^2 Pin
Aristid Papado15-Jun-10 3:52
Aristid Papado15-Jun-10 3:52 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Luc Pattyn15-Jun-10 4:16
sitebuilderLuc Pattyn15-Jun-10 4:16 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Roger Wright15-Jun-10 5:55
professionalRoger Wright15-Jun-10 5:55 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Luc Pattyn15-Jun-10 10:59
sitebuilderLuc Pattyn15-Jun-10 10:59 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Roger Wright15-Jun-10 15:45
professionalRoger Wright15-Jun-10 15:45 
GeneralRe: x^2+y^2+z^2=g^2 Pin
CPallini16-Jun-10 22:39
mveCPallini16-Jun-10 22:39 
AnswerRe: x^2+y^2+z^2=g^2 Pin
Luc Pattyn18-Jun-10 16:50
sitebuilderLuc Pattyn18-Jun-10 16:50 
GeneralRe: x^2+y^2+z^2=g^2 Pin
Bassam Abdul-Baki20-Jul-10 4:13
professionalBassam Abdul-Baki20-Jul-10 4:13 
AnswerRe: x^2+y^2+z^2=g^2 Pin
Bassam Abdul-Baki20-Jul-10 4:12
professionalBassam Abdul-Baki20-Jul-10 4:12 
QuestionConverting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
Paul69159-Jun-10 12:32
Paul69159-Jun-10 12:32 
AnswerRe: Converting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
Luc Pattyn9-Jun-10 12:55
sitebuilderLuc Pattyn9-Jun-10 12:55 
GeneralRe: Converting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
Paul69159-Jun-10 13:33
Paul69159-Jun-10 13:33 
GeneralRe: Converting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
Luc Pattyn9-Jun-10 13:55
sitebuilderLuc Pattyn9-Jun-10 13:55 
GeneralRe: Converting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
Paul691511-Jun-10 6:58
Paul691511-Jun-10 6:58 
GeneralRe: Converting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
Roger Wright21-Jun-10 17:34
professionalRoger Wright21-Jun-10 17:34 
AnswerRe: Converting Nondeterministic finite automata(NFA) to deterministic finite automata(DFA) Pin
supercat99-Jun-10 13:26
supercat99-Jun-10 13:26 
QuestionCan someone give a detail of " shortest-seek -time-First algorithm" some coder is the better Pin
wbgxx7-Jun-10 4:33
wbgxx7-Jun-10 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.