[sage-support] Re: solve

2018-10-05 Thread HG
yes exactly what I wanted. Sorry again for the bad explanation of my 
problem, by the way I hadn't found the wiki you gave the link
Thanks
Henri

Le vendredi 5 octobre 2018 13:05:06 UTC+2, HG a écrit :
>
> I would like to solve these equations but I don't know how?
> >
> > t_0=t_p==gamma*(t-V*x/c^2);show(t_0)
> > x_0=x_p==gamma*(x-V*t);show(x_0)
> >
> > solve(t_0,gamma*(t-V*x/c^2))
> > desolve(gamma*(t-V*x/c^2)==0,x)
> >
> > error desolve() takes at least 2 arguments (1 given)
> >
> > Any help?
> > Henri 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: solve

2018-10-05 Thread slelievre
It seems you want to revert the Lorentz transformation:

https://en.wikipedia.org/wiki/Lorentz_factor#Occurrence

In this case you have a system of equations relating
the various quantities c, ga, t, tt, x, xx, v, where
- ga is the gamma factor, c is the speed of light,
- v is the relative speed of two inertial frames,
- t, x are spacetime coordinates in one inertial frame,
- tt, xx are spacetime coordinates in the other frame.

In Sage form, the system looks like:

tt == ga * (t - v*x/c^2)
xx == ga * (x - v*t)

It is a usual system of equations, not a system of
differential equations, so you want to use `solve`
and not `desolve` (note that "desolve is short for
"differential equation solve").

You could do this:

Define the variables (everything stays symbolic,
we don't give specific values to any variable):

sage: ga, t, tt, x, xx, v = SR.var("ga t tt x xx v")

Define the two equations:

sage: eq1 = tt == ga * (t - v*x/c^2)
sage: eq2 = xx == ga * (x - v*t)

Use `solve`, giving it a list of equations constituting
the system to be solved, and the variables for which to solve:

sage: solve([eq1, eq2], t, x)
[[t == (c^2*tt + v*xx)/(c^2*ga - ga*v^2),
  x == (c^2*tt*v + c^2*xx)/(c^2*ga - ga*v^2)]]

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: solve

2018-10-05 Thread HG
sorry for the bazar !
I don't know how to make latex in the mail
I will make it with sage 

Le vendredi 5 octobre 2018 13:05:06 UTC+2, HG a écrit :
>
> I would like to solve these equations but I don't know how?
> >
> > t_0=t_p==gamma*(t-V*x/c^2);show(t_0)
> > x_0=x_p==gamma*(x-V*t);show(x_0)
> >
> > solve(t_0,gamma*(t-V*x/c^2))
> > desolve(gamma*(t-V*x/c^2)==0,x)
> >
> > error desolve() takes at least 2 arguments (1 given)
> >
> > Any help?
> > Henri 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: solve

2018-10-05 Thread HG
Sorry for not being clear :)
I wonder if I can calculate 
x'′=γ(x−vt)

t′=γ(t−vxc2)
γ=11√−v2c2
Le vendredi 5 octobre 2018 13:05:06 UTC+2, HG a écrit :
>
> I would like to solve these equations but I don't know how?
> >
> > t'=gamma*(t-vx/c^2);show(t')
> > x'=gamma*(x-v*t);show(x')
> >
> > solve(t_0,gamma*(t-V*x/c^2))
> > desolve(gamma*(t-V*x/c^2)==0,x)
> >
> > error desolve() takes at least 2 arguments (1 given)
> >
> > Any help?
> > Henri 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] solve

2018-10-05 Thread Dima Pasechnik
On Fri, Oct 5, 2018 at 12:05 PM HG  wrote:
>
> I would like to solve these equations but I don't know how?
> >
> > t_0=t_p==gamma*(t-V*x/c^2);show(t_0)
> > x_0=x_p==gamma*(x-V*t);show(x_0)
> >
> > solve(t_0,gamma*(t-V*x/c^2))
> > desolve(gamma*(t-V*x/c^2)==0,x)
> >
> > error desolve() takes at least 2 arguments (1 given)

It's not clear what you are trying to do. Could you write this using TeX?
> >
> > Any help?
> > Henri
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] solve

2018-10-05 Thread HG
I would like to solve these equations but I don't know how?
>
> t_0=t_p==gamma*(t-V*x/c^2);show(t_0)
> x_0=x_p==gamma*(x-V*t);show(x_0)
>
> solve(t_0,gamma*(t-V*x/c^2))
> desolve(gamma*(t-V*x/c^2)==0,x)
>
> error desolve() takes at least 2 arguments (1 given)
>
> Any help?
> Henri 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Unable to display graphs from Ubuntu 18.04, Sage 8.3, 64 bit PC

2018-10-05 Thread slelievre
On Sun 2018-08-12, 20:26:15 UTC+2, Graham Gerrard wrote:
>
> Thanks for the helpful comments, Vincent. Will try again
> with the official 18.04 version and "think" the Debian way.
> Assume that no news is good news and that you have a happy customer.

Note that other ways to install SageMath under Ubuntu exist.
You could, among other ways,
- use the conda package
- use a Docker image
- use the Nix package

Also, if you like to have the latest version, building from source
is not all that hard.

See the "Distribution" page on the Sage wiki for more information.

https://wiki.sagemath.org/Distribution

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: solve /desolve

2018-10-05 Thread slelievre
On Wed 2018-10-03, 18:34:51 UTC+2, HG wrote:

> I would like to solve these equations but I don't know how?
>
> t_0=t_p==gamma*(t-V*x/c^2);show(t_0)
> x_0=x_p==gamma*(x-V*t);show(x_0)
>
> solve(t_0,gamma*(t-V*x/c^2))
> desolve(gamma*(t-V*x/c^2)==0,x)
>
> error desolve() takes at least 2 arguments (1 given)
>
> Any help?
> Henri 

Dear Henri,

please start a new thread rather than asking a question as a reply
to an unrelated thread.

Kind regards,
Samuel

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.