t; dt + t1]
>
> (c^2*dt + u*(x1 - x2))/(Sqrt[(c - u)*(c + u)]*Abs[c])
>
> Still don't know how to do this in Sage :(
>
> On Jun 19, 1:32 pm, Jacare Omoplata wrote:
>
>
>
>
>
>
>
> > I found out that in Mathematica this can be done by
> > PolynomialRed
gt; dt + t1, Element[c, Reals]]
(c^2*dt + u*(x1 - x2))/(Sqrt[(c - u)*(c + u)]*Abs[c])
$Assumptions = Element[c, Reals];
FullSimplify[dT /. t2 -> dt + t1]
(c^2*dt + u*(x1 - x2))/(Sqrt[(c - u)*(c + u)]*Abs[c])
Still don't know how to do this in Sage :(
On Jun 19, 1:32 pm, Jacare Omopla
rpart to this
Mathematica function? If not how do get the same result?
On Jun 19, 11:19 am, Jacare Omoplata wrote:
> The following are the expressions,
>
> sage: var('x1,t1,x2,t2,u,c',domain=RR);assume(u>0);assume(c>u);
> (x1, t1, x2, t2, u, c)
> sage: T1 = (t
Thanks for the replies.
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
The following are the expressions,
sage: var('x1,t1,x2,t2,u,c',domain=RR);assume(u>0);assume(c>u);
(x1, t1, x2, t2, u, c)
sage: T1 = (t1-((u*x1)/(c^2)))/sqrt(1-((u^2)/(c^2)))
sage: T2 = (t2-((u*x2)/(c^2)))/sqrt(1-((u^2)/(c^2)))
sage: dT = T2-T1
sage: dt = t2-t1
Suppose I know that dT is in this f
In some tutorials, when a variable is declared, it is done like,
var('x')
In some others, it is done like,
x = var('x')
What is the difference between the two, if any?
Also, is it better to ask this kind of basic question in the Asksage
forum or the sage-support mailing list?
Thanks for your