Re: [sage-support] algorithme

2019-01-22 Thread henri girard

two other books (tutorial) in english about sage very good :)

http://www.people.vcu.edu/~clarson/bard-sage-for-undergraduates-2014.pdf

http://www.math.usm.edu/dont_panic/draft12.pdf

Le 22/01/2019 à 09:49, Emmanuel Charpentier a écrit :


s/recommandé/recommander


Le mardi 22 janvier 2019 09:47:21 UTC+1, Emmanuel Charpentier a écrit :

Le dimanche 20 janvier 2019 02:23:14 UTC+1, Anton Sherwood a écrit :

On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote:
> Bonjour,
> je suis un tous nouveau utilisateur de sagemath. Je maîtrise
les
> opérations indépendantes. Mon souci se trouve au nivaux des
algorithmes.
> je n'arrive, jusque là pas à comprendre comment programmer
avec sageMath
> (voir les ''screenshots'').
> merci de m'aider à démarrer.


Vous devriez tenter de comminuquer en anglais, qui est la langue
comprise par le plus grad nombre (de loin) de lecteurs du groupe.
Après tout :
sage: r.library("fortunes")
sage: r('fortune("Bad English")')

Bad English is the language of science.
   -- Jan de Leeuw
      JSS mailing list (February 2005)

Cela dit, je ne saurais trop recommandé la lecture du remarquable
manuel collectif "Calcul mathématique avec Sage
", qui décrit (en français, s'il
vous plaît...) une version un peu ancienne de Sage, sa traduction
anglaise , qui
utilise une version plus récente, pouvant également vous servir de
pierre de Rosette ...

Vous aurez aussi besoin d'un manuel pour Python, pour lequel je ne
me sens pas apte à faire une recommandation. Notez que Sage
utilise actuellement Python 2 (en voie d'obsolescence), mais
migrera prochainement vers Python 3.

--
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.


Re: [sage-support] algorithme

2019-01-22 Thread Emmanuel Charpentier

s/recommandé/recommander


Le mardi 22 janvier 2019 09:47:21 UTC+1, Emmanuel Charpentier a écrit :
>
> Le dimanche 20 janvier 2019 02:23:14 UTC+1, Anton Sherwood a écrit :
>>
>> On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote: 
>> > Bonjour, 
>> > je suis un tous nouveau utilisateur de sagemath. Je maîtrise les 
>> > opérations indépendantes. Mon souci se trouve au nivaux des 
>> algorithmes. 
>> > je n'arrive, jusque là pas à comprendre comment programmer avec 
>> sageMath 
>> > (voir les ''screenshots''). 
>> > merci de m'aider à démarrer. 
>>
>
> Vous devriez tenter de comminuquer en anglais, qui est la langue comprise 
> par le plus grad nombre (de loin) de lecteurs du groupe.
> Après tout :
> sage: r.library("fortunes")
> sage: r('fortune("Bad English")')
>
> Bad English is the language of science.
>-- Jan de Leeuw
>   JSS mailing list (February 2005)
>
> Cela dit, je ne saurais trop recommandé la lecture du remarquable manuel 
> collectif "Calcul mathématique avec Sage 
> ", qui décrit (en français, s'il vous 
> plaît...) une version un peu ancienne de Sage, sa traduction anglaise 
> , qui utilise une version 
> plus récente, pouvant également vous servir de pierre de Rosette 
> ...
>
> Vous aurez aussi besoin d'un manuel pour Python, pour lequel je ne me sens 
> pas apte à faire une recommandation. Notez que Sage utilise actuellement 
> Python 2 (en voie d'obsolescence), mais migrera prochainement vers Python 3.
>
>  
>

-- 
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] algorithme

2019-01-22 Thread Emmanuel Charpentier
Le dimanche 20 janvier 2019 02:23:14 UTC+1, Anton Sherwood a écrit :
>
> On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote: 
> > Bonjour, 
> > je suis un tous nouveau utilisateur de sagemath. Je maîtrise les 
> > opérations indépendantes. Mon souci se trouve au nivaux des algorithmes. 
> > je n'arrive, jusque là pas à comprendre comment programmer avec sageMath 
> > (voir les ''screenshots''). 
> > merci de m'aider à démarrer. 
>

Vous devriez tenter de comminuquer en anglais, qui est la langue comprise 
par le plus grad nombre (de loin) de lecteurs du groupe.
Après tout :
sage: r.library("fortunes")
sage: r('fortune("Bad English")')

Bad English is the language of science.
   -- Jan de Leeuw
  JSS mailing list (February 2005)

Cela dit, je ne saurais trop recommandé la lecture du remarquable manuel 
collectif "Calcul mathématique avec Sage ", 
qui décrit (en français, s'il vous plaît...) une version un peu ancienne de 
Sage, sa traduction anglaise , 
qui utilise une version plus récente, pouvant également vous servir de pierre 
de Rosette ...

Vous aurez aussi besoin d'un manuel pour Python, pour lequel je ne me sens 
pas apte à faire une recommandation. Notez que Sage utilise actuellement 
Python 2 (en voie d'obsolescence), mais migrera prochainement vers Python 3.

 

-- 
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] algorithme

2019-01-20 Thread Vincent Delecroix

Bonjour,

Cette liste est plutôt anglophone (voir les réponses). Il y a deux
erreurs dans votre programme.

Premièrement, il ne faut pas mettre de "\"  à la fin des lignes.
Ensuite, le signe de comparaison est "==" et non pas "=".

Je vous conseille de regarder un livre sur la programmation en
Python pour vous familiariser avec tout ça.

Le 20/01/2019 à 00:52, MAMANE DJAMILOU Salissou Dango a écrit :

Bonjour,
je suis un tous nouveau utilisateur de sagemath. Je maîtrise les opérations
indépendantes. Mon souci se trouve au nivaux des algorithmes. je n'arrive,
jusque là pas à comprendre comment programmer avec sageMath (voir les
''screenshots'').
merci de m'aider à démarrer.



--
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] algorithme

2019-01-19 Thread henri girard

\ can be used when one wants to slip a line , in a long line

for example

plot(sin(x),x,0,2, color="red",figsize=3,

    \fontsize=8,frame=True)

in fact here is not really useful it's just for the example, because in 
a jupyter notebook, if you write after a gomma and press "enter" the 
next line will be indented



Le 20/01/2019 à 02:35, 'Justin C. Walker' via sage-support a écrit :



On Jan 19, 2019, at 17:23 , Anton Sherwood  wrote:

On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote:

Bonjour,
je suis un tous nouveau utilisateur de sagemath. Je maîtrise les opérations 
indépendantes. Mon souci se trouve au nivaux des algorithmes. je n'arrive, 
jusque là pas à comprendre comment programmer avec sageMath (voir les 
''screenshots'').
merci de m'aider à démarrer.

An attempt at translation:
Good day,
I am a very new user of sagemath.  I am mastering independent operations.  My 
trouble is on the level of algorithms.
So far, I cannot understand how to program with sageMath (see the screenshots).
Thanks for helping me to get started.

The problem is the use of “\”.  Python programs are structured by indentation, 
so the way to type the program in an editor, at the command line prompt, or in 
the notebook, is as follows:

def fac(n):
 if n == 1:
 print ‘bonjour’
 else:
 print “bonsai”

The OP was entering the code almost correctly, but the “\” caused the parser to 
ignore the new-line, and string everything together as one line.

HTH

Justin

--
Justin C. Walker
Director
Institute for the Enhancement of the Director's Income
--
Fame is fleeting, but obscurity
just drags on and on.  F





--
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] algorithme

2019-01-19 Thread 'Justin C. Walker' via sage-support



> On Jan 19, 2019, at 17:23 , Anton Sherwood  wrote:
> 
> On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote:
>> Bonjour,
>> je suis un tous nouveau utilisateur de sagemath. Je maîtrise les opérations 
>> indépendantes. Mon souci se trouve au nivaux des algorithmes. je n'arrive, 
>> jusque là pas à comprendre comment programmer avec sageMath (voir les 
>> ''screenshots'').
>> merci de m'aider à démarrer.
> 
> An attempt at translation:
> Good day,
> I am a very new user of sagemath.  I am mastering independent operations.  My 
> trouble is on the level of algorithms.
> So far, I cannot understand how to program with sageMath (see the 
> screenshots).
> Thanks for helping me to get started.

The problem is the use of “\”.  Python programs are structured by indentation, 
so the way to type the program in an editor, at the command line prompt, or in 
the notebook, is as follows:

def fac(n):
if n == 1:
print ‘bonjour’
else:
print “bonsai”

The OP was entering the code almost correctly, but the “\” caused the parser to 
ignore the new-line, and string everything together as one line.  

HTH

Justin

--
Justin C. Walker
Director
Institute for the Enhancement of the Director's Income
--
Fame is fleeting, but obscurity
   just drags on and on.  F



-- 
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] algorithme

2019-01-19 Thread Anton Sherwood

On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote:

Bonjour,
je suis un tous nouveau utilisateur de sagemath. Je maîtrise les 
opérations indépendantes. Mon souci se trouve au nivaux des algorithmes. 
je n'arrive, jusque là pas à comprendre comment programmer avec sageMath 
(voir les ''screenshots'').

merci de m'aider à démarrer.


An attempt at translation:
Good day,
I am a very new user of sagemath.  I am mastering independent 
operations.  My trouble is on the level of algorithms.
So far, I cannot understand how to program with sageMath (see the 
screenshots).

Thanks for helping me to get started.


--
*\\*  Anton Sherwood  *\\*  www.bendwavy.org

--
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] algorithme

2019-01-19 Thread MAMANE DJAMILOU Salissou Dango
Bonjour, 
je suis un tous nouveau utilisateur de sagemath. Je maîtrise les opérations 
indépendantes. Mon souci se trouve au nivaux des algorithmes. je n'arrive, 
jusque là pas à comprendre comment programmer avec sageMath (voir les 
''screenshots''). 
merci de m'aider à démarrer.  

-- 
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.