Click here to Skip to main content
15,919,778 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Seeking A Solution Pin
Roger Wright26-Jun-10 19:54
professionalRoger Wright26-Jun-10 19:54 
GeneralRe: Seeking A Solution Pin
cp987627-Jun-10 0:57
cp987627-Jun-10 0:57 
GeneralRe: Seeking A Solution Pin
Roger Wright27-Jun-10 3:56
professionalRoger Wright27-Jun-10 3:56 
GeneralRe: Seeking A Solution Pin
cp987627-Jun-10 19:33
cp987627-Jun-10 19:33 
Questionx^2+y^2+z^2=g^2 Pin
Aristid Papado14-Jun-10 16:43
Aristid Papado14-Jun-10 16:43 
AnswerRe: x^2+y^2+z^2=g^2 Pin
Luc Pattyn14-Jun-10 16:45
sitebuilderLuc Pattyn14-Jun-10 16:45 
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 
which are the values that are given and which are you looking for?

ok, suppose x,y,z are the unknown values and a,b,c,g are given

you have 3 unknowns and 4 equatations, so this is overdetermined (may also have no solution)
as all values go squared here, lets substitute
p = x^2
q = y^2
r = z^2


write it in lines:

p + q + r = g^2 (I)
p + q     = a^2 (II)
p +     r = b^2 (III)
    q + r = c^2 (IV)


to get p for example, substract (IV) from (I)

(I) - (IV):
 p+q+r-(q+r) = g^2 - c^2
p = g^2 - c^2


then do it similar to get r and q
after this, get each two values x1 und x2 like
x1 = sqr(p)
x2 = -sqr(p)


but I believe that there is no solution in this equatation, because after having the p,q,r try setting them in the first (p+q+r=g^2) and check if it is right - I dont think so

(edit: yeah code blocks...)
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 
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 

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.