I'm trying to find values for "x" using Solve, but I do not think it's the best solution.
What is the most appropriate function to calculate this?
Solve[Tan[α] == a/x && Tan[2 α] == (a + 5)/x && x^2 + (a + 5)^2 == 10^2, {x, a}]
I'm trying to find values for "x" using Solve, but I do not think it's the best solution.
What is the most appropriate function to calculate this?
Solve[Tan[α] == a/x && Tan[2 α] == (a + 5)/x && x^2 + (a + 5)^2 == 10^2, {x, a}]
Adding to the comments of Feyre
values={a,x,α}/.Solve[Tan[α]==a/x&&Tan[2 α]==(a+5)/x&&x^2+(a+5)^2==100&&0<α<Pi/2&&0<a<10&&0<x<10,{x,a,α}]//N;
a=values[[1,1]]
x=values[[1,2]]
α=values[[1,3]]
a=3 x=6 α=0.463648 rad
{a,x,α}={a,x,α}/.Solve[....], or Solve[....] /. Rule -> Set, or Solve[....] /. Rule -> Equal for a display.
– corey979
Dec 06 '16 at 13:14
Reduce instead of Solve in this case.
– Greg Hurst
Dec 06 '16 at 15:41
Solve[Tan[\[Alpha]] == a/x && Tan[2 \[Alpha]] == (a + 5)/x && x^2 + (a + 5)^2 == 100 && 0 < \[Alpha] < Pi/4 && 0 < a < 10 && 0 < x < 10, {x, a, \[Alpha]}]– Feyre Dec 06 '16 at 12:36