Can anyone solve this, to find X, Y and Z please?? a,b,c,d,e,f,v are known values. This has been sending me mad trying to solve it .
VB Code:
2ad + 2be + 2cf = X(a+d) + Y(b+e) +Z(c+f)
'Other known facts are:
u = Sqr(a^2 + b^2 + c^2)
n = Sqr(d^2 + e^2 + f^2)
u = n
'So:
a^2 + b^2 + c^2 = d^2 + e^2 + f^2
'Also:
v^2 = X^2 + Y^2 + Z^2
Any help would be greatfully appreciated.
This all came from this by the way:
VB Code:
0 = aX + bY + cZ
0 = dX + eY + fZ
0 = ad + be + cf
v^2 = X^2 + Y^2 + Z^2
There should be two answers for this.
Thanx for any help.
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
Yea thanx thats what I was after but I posted at the top how far I'd got, Then I realised I might have gone down the wrong track so thort it'd be a good idea to post what I started from aswell.
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
I still need to keep a,b,c,d,e,f,v as a,b,c,d,e,f,v because i'm putting this into code so I need to solve this algebraically
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
Sorry to make this the 4th post in a row but I've managed to add this to it:
Code:
dX + eY + fZ = rd + se + tf
r, s and t are more known values.
This is starting to get really bad
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
No, I need to put it into code so the values will change for different times the procedure is run
Don't forget there'll be two results as well, probably just a +/- thing on a SqRt
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
thats great thanx, I'll check them out and let you know how it goes .
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
just one problem: In the second solution theres this line that I don't understand:
VB Code:
X^2 = V^2 (1-K^2 M -M)
'Is it ment to be:
X^2 = V^2 (1 - K^2 * M * (-M)) '??
'I ask this because I don't think this would make sense:
X^2 = V^2 (1 - K^2 * (M - M))
Just to be sure
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
I'm goint to have to assume its X^2 = V^2 (1 - K^2 * M * (-M)) and once i've done that the 3D thing thing be finished cyborg
I suppose it could be X^2 = V^2 (1 - (K^2 * M) - M) ??
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
I have a problems now tho, the second solution doesn't like it if some of the variables are zero when I first tested it most of them were zero and the VB deguger had a field day . I'm now gona try the first solution you said and see what happens
agmorgan: You any good with vectors??
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
It seems zero friendly aswell
Thanx loads, I'll see if it work with what I want it to now. Fingers crossed.
EDIT: Nope, it doesn't like zeros, the p and q bit causes the problem as far as zero goes. Also it just doesn't seem to be working. I'm going to have to see if I can find where the problem is comming from and maybe try something else. Dam ArcCos(Cos(x)) = x for 0 < x < 180, why not 0 < x < 360 then I wouldn't have had to do this in the first place.
Last edited by Electroman; Jul 25th, 2003 at 07:53 AM.
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.