Hi all,
Thanks so much for your help- and so quickly too!
I realise it is a very straight forward problem- I am very new to
Sage, and am working through some basic school-level problems to get
used to the functions before I start using it for my work.
Thank you once more!
Dan
--
To post to th
On Apr 6, 9:09 am, Danread5 wrote:
>
> sage: d = sqrt(x^2 + 5^2)
> sage: D = sqrt((20-x)^2 + 10^2)
> sage: T = d + D; T
> sqrt(x^2 + 25) + sqrt((x - 20)^2 + 100)
> sage: diff(T, x)
> (x - 20)/sqrt((x - 20)^2 + 100) + x/sqrt(x^2 + 25)
> sage: solve((x - 20)/sqrt((x - 20)^2 + 100) + x/sqrt(x^2 + 25)
btw: the previous output is _, you can write solve(_,x) on your line.
And another calculation could look like this, in other word, we have
in fact to solve quadratic equation.
sage: d = sqrt(x^2 + 5^2)
sage: D = sqrt((20-x)^2 + 10^2)
sage: T = d + D; T
sqrt(x^2 + 25) + sqrt((x - 20)^2 + 100)
sag
Hi
sage: solve((x - 20)/sqrt((x - 20)^2 + 100) + x/sqrt(x^2 + 25) == 0,
x, to_poly_solve=True)
[x == (20/3)]
Robert M.
On 6 dub, 15:09, Danread5 wrote:
> Hi all,
>
> My first post...
>
> I seem to be having trouble with solving for x in the following:
>
> sage: d = sqrt(x^2 + 5^2)
> sage: D =