Re: [sage-support] equation solution in integer

2020-04-19 Thread Pedro A. Garcia
Yes, @vdelecroix, in these cases this might be a very good option. sage: list( [x,y] for x in range(1,10) for y in range(1,10) if x+y==15) [[6, 9], [7, 8], [8, 7], [9, 6]] For a more general setting, normaliz, 4ti2 and other approaches are better; some are available in sage as pointed above.

[sage-support] Re: equation solution in integer

2020-04-19 Thread Pedro A. Garcia
May be you want to use ` WeightedIntegerVectors(15,[1,1])` or restricted partitions inside gap. This, for a single linear Diophantine equation like yours might be a fast approach. Pedro On Friday, April 17, 2020 at 7:17:12 PM UTC+2, Bert Henry wrote: > > I have the equation > x + y = 15 > an

[sage-support] Re: JupyterHub Integration

2019-05-14 Thread Pedro A. Garcia
Arnav, If you are using docker you may want to have a look at https://github.com/sagemath/sage-binder-env I took that as a starting point for https://github.com/pedritomelenas/Algebra-conmutativa-y-computacional/blob/master/Dockerfile But the question is, if you have jupyterhub installed on