Easy math problem consultation

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Easy math problem consultation

Post by Psychophanta »

I have:
t*sin(a) = k+cos(a)
I know all but 'a', and i want to know 'a' respect 'k' and 't', but i don't know.
Any help? :?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

My initial working yields:

a = arcsin(k/sqrt(1+t^2)) + arctan (1/t)

I'll do some checking.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Yea looks okay. This will only give valid values though providing
the value of k lies between -sqrt(1+t^2) and +sqrt(1+t^2).
I may look like a mule, but I'm not a complete ass.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Yes, can explain how did you it please?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Psychophanta wrote:Yes, can explain how did you it please?
:)

Not so easy through the forum. Assuming that your mathematics is at least A-level standard:

Rearrange to get t*sin a - cos a = k.

Now use the standard A-level Mathematics technique to express t*sin a - cos a in the form RSin(a - s) where R and s are to be found.

You should find that R = sqrt(1 + t^2) and s = arctan (1/t).

The equation now becomes sqrt(1 + t^2)sin (a - arctan (1/t)) = k
which means that sin (a - arctan (1/t)) = k / sqrt(1 + t^2)
and thus a - arctan (1/t) = arcsin (k / sqrt(1 + t^2))
from which we get the result.

If you need me to fill in a few more details then I'll need to e-mail you a pdf file or a Word document.
I may look like a mule, but I'm not a complete ass.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

srod wrote:...express t*sin a - cos a in the form RSin(a - s) where R and s are to be found.

You should find that R = sqrt(1 + t^2) and s = arctan (1/t).
Where in teh web can i find these relations?

srod wrote:If you need me to fill in a few more details then I'll need to e-mail you a pdf file or a Word document.
Should be nice :wink:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

The whole thing hinges on the fact that

sin (A - B) = sin A*cos B - cos A*sin B

(called a compound-angle identity).

If you've come across this before, then I can easily furnish you with a complete proof of the above fact.
I may look like a mule, but I'm not a complete ass.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

srod wrote:The whole thing hinges on the fact that
sin (A - B) = sin A*cos B - cos A*sin B
of course i know, but i don't see the relation of this with the problem :roll:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Give me 10 minutes to hack up a pdf file with a full explanation then. Can you pm me your e-mail address.

**EDIT: all done - just need your e-mail address.
I may look like a mule, but I'm not a complete ass.
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

I will try to solve it too and scan in the result if possible (after what I have learned in math)
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

srod wrote:**EDIT: all done - just need your e-mail address.
Wait, please, i will not defeat, sorry to heve been to loose your time, but i have it all almost solved. :x
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

I cant solve it using factorizing and tanA=sinA/cosA :(
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

I defeat:
my email is my nick at hotmail.com :?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

e-mail sent.
I may look like a mule, but I'm not a complete ass.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

I see, mhhh, you are in use, i guess, doing these things, don't?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply