• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 03:47
CET 09:47
KST 17:47
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband
Tourneys
RSL Offline Finals Info - Dec 13 and 14! StarCraft Evolution League (SC Evo Biweekly) RSL Offline FInals Sea Duckling Open (Global, Bronze-Diamond) $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
BW General Discussion Which season is the best in ASL? Data analysis on 70 million replays BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET [Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Nintendo Switch Thread ZeroSpace Megathread Stormgate/Frost Giant Megathread The Perfect Game Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The Big Programming Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Physical Exertion During Gam…
TrAiDoS
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1742 users

Trigonometry Halp Plox!

Blogs > Raithed
Post a Reply
Raithed
Profile Blog Joined May 2007
China7078 Posts
January 31 2008 02:21 GMT
#1
This is a robot arm, meh, whatever, who cares. I know how to get R, as well as theta. Let's say that...

x = 6.0
y = 12.0
L1 = 12"
L2 = 10"

R = sqrtof(10^2+12^2) = 15.62
theta = tan^-1(y/x) = tan^-1(12/6) = 63.43º
How do I find theta1, and theta2?

Sorry for the yellow:

[image loading]


hellhawk123
Profile Joined December 2007
United States84 Posts
January 31 2008 02:28 GMT
#2
wait do you mean R is sqrt(6^2+12^2) = 13.42? then you know l1 l2 and R so use law of cosines
[xyn]
Raithed
Profile Blog Joined May 2007
China7078 Posts
January 31 2008 02:31 GMT
#3
No, R = sqrtof(10^2+12^2) = 15.62. Not x, y, but a, b. I don't remember those laws. :[
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
Last Edited: 2008-01-31 02:37:52
January 31 2008 02:33 GMT
#4
a^2 + b^2 = c^2 only works for right triangles.

Edit: oh, nvmd, I think.

Edit2: oh, nvmd the nvmd.
fight_or_flight
Profile Blog Joined June 2007
United States3988 Posts
Last Edited: 2008-01-31 02:35:51
January 31 2008 02:35 GMT
#5
On January 31 2008 11:31 Raithed wrote:
No, R = sqrtof(10^2+12^2) = 15.62. Not x, y, but a, b. I don't remember those laws. :[

how is R equal to that?

you can only use pythagorean theorem for a right-triangle. I'm kind of confused on the question, you should word it better.

edit: lol at the theta
Do you really want chat rooms?
Raithed
Profile Blog Joined May 2007
China7078 Posts
January 31 2008 02:35 GMT
#6
Oh, and thanks hellhawk123, but even though I know the Law of Cosines, how would I do it? I get confused at that point.
hellhawk123
Profile Joined December 2007
United States84 Posts
Last Edited: 2008-01-31 02:39:39
January 31 2008 02:36 GMT
#7
sorry but how are you getting R? I assumed x=x component of R and y=y component of R?

also law of cosines is given triangle w/ lengths a b c and respective angles alpha beta gamma, c^2=a^2+b^2-2abcos(gamma) (pythag theorem is when gamma=pi/2)
[xyn]
fight_or_flight
Profile Blog Joined June 2007
United States3988 Posts
January 31 2008 02:38 GMT
#8
On January 31 2008 11:36 hellhawk123 wrote:
sorry but how are you getting R? I assumed x=x component of R and y=y component of R?

also law of cosines is given triangle w/ lengths a b c and respective angles alpha beta gamma, c^2=a^2+b^2-2abcos(gamma)

Correct. If R is given by the (x,y) components, then it should be easy to plug in a, b, c and solve for gamma.
Do you really want chat rooms?
Raithed
Profile Blog Joined May 2007
China7078 Posts
January 31 2008 02:41 GMT
#9
OOPS, sorry sorry. I mistook a^2+b^2 but you're right it's x^2+y^2.

So basically it is:

13.42^2 = 10^2 + 12^2 - 2(10)(12)cos(gamma)
180 = 100+144 - 240cos(gamma)
180 = 244 - 240cos(gamma)

Oh fuck I fail at Algebra, I know the gamma has to be alone, so move the (244 - 240cos) to the other side?
hellhawk123
Profile Joined December 2007
United States84 Posts
Last Edited: 2008-01-31 02:51:12
January 31 2008 02:48 GMT
#10
solving for gamma we have gamma=arccos((c^2-a^2-b^2)/(-2ab)) so just plug in. In your case, 180 = 244 - 240cos(gamma) -> cos(gamma)=(180-244)/(-240) -> gamma=arccos(0.26)=1.3 radians or 74.5 degrees
[xyn]
Raithed
Profile Blog Joined May 2007
China7078 Posts
January 31 2008 02:53 GMT
#11
Is arccos = cos^-1? And why does it have to be arccos?

Thanks hellhawk, so that would be theta1?
hellhawk123
Profile Joined December 2007
United States84 Posts
January 31 2008 02:58 GMT
#12
yes. Arccos is the inverse of cos so if cos(a)=b, you take the inverse of both sides so arccos(cos(a))=arccos(b)), inverses cancel, a=arccos(b). The way you did it, it yields the angle opposite of R in the triangle consisting of the lines R, L1 and L2 which doesnt do us much good. You want to get the angle opposite of L2 (which is equal to theta - theta1) so just in the law of cosines equation, set c=L2 and the other 2 sides as a and b.
[xyn]
Raithed
Profile Blog Joined May 2007
China7078 Posts
January 31 2008 03:02 GMT
#13
Thanks a lot, I keep having an issue remembering/understanding this once the angles goes crazy different ways, hopefully in the future you can help further. I have another example but I'll post it tomorrow I guess, sick atm.
hellhawk123
Profile Joined December 2007
United States84 Posts
Last Edited: 2008-01-31 04:27:06
January 31 2008 03:07 GMT
#14
no prob, and FYI, if you want more reliable help you can try http://www.artofproblemsolving.com/Forum/index.php Basically you post a problem and billions of math kids swarm, piranha-like, to answer it.
[xyn]
Kwidowmaker
Profile Blog Joined October 2007
Canada978 Posts
January 31 2008 03:50 GMT
#15
I'm not sure if it has been said, but you do want to opposite to R so that you can subtract that from 180 degrees to get theta 2.
Kk.
Raithed
Profile Blog Joined May 2007
China7078 Posts
January 31 2008 03:51 GMT
#16
Not found?
Kwidowmaker
Profile Blog Joined October 2007
Canada978 Posts
January 31 2008 04:00 GMT
#17
Hmm? You can get it with cosine law, I'm sure.

I'm of the understanding that L1 is only the black and not the yellow line.
Kk.
Raithed
Profile Blog Joined May 2007
China7078 Posts
Last Edited: 2008-01-31 05:30:55
January 31 2008 05:30 GMT
#18
No, I get it now, hellhawk showed me, what I mean is, the website gave me didn't work, which works now.
BluzMan
Profile Blog Joined April 2006
Russian Federation4235 Posts
January 31 2008 09:16 GMT
#19
You fucking know the lengths of all 3 sides of a triangle and you can't find the angles?
You want 20 good men, but you need a bad pussy.
Slayer91
Profile Joined February 2006
Ireland23335 Posts
January 31 2008 18:37 GMT
#20
Well obviously theta2 is the 180 minus angel opposite R.
theta1 is theta minus the angel opposite l2.
Finding those angles is a matter of plugging in the cosine rule, right?
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
WardiTV Mondays #62
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 146
-ZergGirl 65
StarCraft: Brood War
Britney 8989
Tasteless 278
BeSt 209
Pusan 102
Sacsri 92
Killer 89
Dewaltoss 66
Sharp 64
Shine 45
sorry 39
[ Show more ]
Shinee 31
ToSsGirL 28
ZergMaN 27
Bale 24
Hm[arnc] 5
Dota 2
febbydoto164
NeuroSwarm117
canceldota43
League of Legends
JimRising 512
C9.Mang0295
Reynor69
Counter-Strike
shoxiejesuss317
Super Smash Bros
Westballz29
Other Games
summit1g10971
WinterStarcraft592
crisheroes367
Happy159
Mew2King32
Organizations
Other Games
gamesdonequick463
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH232
• LUISG 18
• Light_VIP 10
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1133
Upcoming Events
The PondCast
1h 14m
OSC
7h 14m
Demi vs Mixu
Nicoract vs TBD
Babymarine vs MindelVK
ForJumy vs TBD
Shameless vs Percival
Replay Cast
15h 14m
Korean StarCraft League
1d 18h
CranKy Ducklings
2 days
WardiTV 2025
2 days
SC Evo League
2 days
BSL 21
2 days
Sziky vs OyAji
Gypsy vs eOnzErG
OSC
2 days
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
3 days
[ Show More ]
WardiTV 2025
3 days
OSC
3 days
BSL 21
3 days
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
4 days
Wardi Open
4 days
StarCraft2.fi
4 days
Monday Night Weeklies
4 days
Replay Cast
4 days
WardiTV 2025
5 days
StarCraft2.fi
5 days
PiGosaur Monday
5 days
StarCraft2.fi
6 days
Tenacious Turtle Tussle
6 days
Liquipedia Results

Completed

Proleague 2025-11-30
RSL Revival: Season 3
Light HT

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.