[sage-support] doc about combinatoric and graphs

2018-03-23 Thread Henri Girard

Hi,

I want to learn combinatoric and graphs with sage, I found few doc on 
web, but not really for beginners, I am a true "beginner" so any idea is 
welcome, I would prefer doc in french but I found only in english, so 
reading is not easy (but not impossible).


Kind regards

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] ipywidgets and sage

2018-03-23 Thread Marcin Kostur
OK it works fine, with 7.1.1(sagemath) and 7.1.2(anaconda)

thanks

mk

-- 
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: Find_root not finding a root

2018-03-23 Thread Marcin Kostur
Dear Saad,

It happens that I want to find more than one root numerically, then I use 
brute force as in code below. It is not possible to 
have any general heuristics for arbitrary function about where its roots 
are, so if one knows more about the function in some special case
 then the interval generation can be adapted to reflect this knowledge.

zeros = []
xmin = -1
xmax = 1
f = sin(1/x)-x
intv = srange(xmin,xmax,(xmax-xmin)/150)
for x1,x2 in zip(intv,intv[1:]):
try:
rt = find_root(f,x1,x2 )
zeros.append(rt)
except:
pass

That is all.

mk


On Monday, March 19, 2018 at 9:45:53 PM UTC+1, saad khalid wrote:
>
> So what is likely the difference between how Sage solves this problem and 
> how Mathematica solves this problem that makes Mathematica show more 
> solutions? 
>
> On Friday, March 16, 2018 at 4:31:33 AM UTC-5, Dima Pasechnik wrote:
>>
>> This makes sense. It most probably has a pre-set minimal interval length, 
>> so it stops splitting at certain moment.
>
>

-- 
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: Mixing cython and Sage code

2018-03-23 Thread Ralf Stephan
On Wednesday, March 21, 2018 at 7:29:37 PM UTC+1, saad khalid wrote:
>
> ...For example, one of the Mathematica functions takes a polynomial in 2 
> variables as input and computes the value of the order in one of the 
> variables (ie for x1^3 + x1*x2^2 + x2, the order for x1 would be 3).
>

Not discouraging your efforts but did you try poly.degree(x1)?

-- 
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: doc about combinatoric and graphs

2018-03-23 Thread slelievre
Le vendredi 23 mars 2018 08:07:52 UTC+1, HG a écrit :
>
> I want to learn combinatoric and graphs with sage, I found few doc on 
> web, but not really for beginners, I am a true "beginner" so any idea is 
> welcome, I would prefer doc in french but I found only in english, so 
> reading is not easy (but not impossible). 

The book "Calcul mathématique avec Sage" is an excellent
resource for that. The original version is in French.
Translations to English and German exist, and a translation
to Spanish is in progress, if I remember correctly.

See the book's webpage:

http://sagebook.gforge.inria.fr

-- 
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] Re: doc about combinatoric and graphs

2018-03-23 Thread Henri Girard

thanks i got it


Le 23/03/2018 à 18:20, slelievre a écrit :

Le vendredi 23 mars 2018 08:07:52 UTC+1, HG a écrit :
>
> I want to learn combinatoric and graphs with sage, I found few doc on
> web, but not really for beginners, I am a true "beginner" so any 
idea is

> welcome, I would prefer doc in french but I found only in english, so
> reading is not easy (but not impossible).

The book "Calcul mathématique avec Sage" is an excellent
resource for that. The original version is in French.
Translations to English and German exist, and a translation
to Spanish is in progress, if I remember correctly.

See the book's webpage:

    http://sagebook.gforge.inria.fr
--
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.