[sage-support] Re: Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Ralf Stephan
Because in the symbolic ring 3*(2*x+1) is immediately expanded again. Try 
yourself:

sage: 2*(1+3*x)
6*x + 2

But see also https://trac.sagemath.org/ticket/21067

Regards,

On Thursday, April 6, 2017 at 5:47:28 PM UTC+2, Chris Seberino wrote:
>
> Why factor(6*x+3) doesn't give 3*(2*x+1) ?
>
> Thanks!
>
> cs
>

-- 
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] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
No

-- 
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] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Christophe BAL (via GMAIL)

Just try :

-
Z_T, t =  ZZ['x'].objgen()

print factor(6*t+3)
print factor(6*x+3)
-

You will se that you need to use the right ring of polynomials.

C.

--
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: Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
I *agree* that the answer should be expanded in your example.
But when you use the factor function it should have an effect no!?

(I saw the other reply about rings.  See my reply to that if you wish too.)

On Friday, April 7, 2017 at 3:04:01 AM UTC-5, Ralf Stephan wrote:
>
> Because in the symbolic ring 3*(2*x+1) is immediately expanded again. Try 
> yourself:
>
> sage: 2*(1+3*x)
> 6*x + 2
>
> But see also https://trac.sagemath.org/ticket/21067
>
> Regards,
>
> On Thursday, April 6, 2017 at 5:47:28 PM UTC+2, Chris Seberino wrote:
>>
>> Why factor(6*x+3) doesn't give 3*(2*x+1) ?
>>
>> Thanks!
>>
>> cs
>>
>

-- 
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] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
I have no doubt you know about group theory and math in general more than 
me.  I have no doubt
your answer is defensible and accurate.  

What I'm concerned about is the young students and what they expect to see 
when
they type factor( ... ).

cs

On Friday, April 7, 2017 at 9:56:31 AM UTC-5, projetmbc wrote:
>
> Just try : 
>
> - 
> Z_T, t =  ZZ['x'].objgen() 
>
> print factor(6*t+3) 
> print factor(6*x+3) 
> - 
>
> You will se that you need to use the right ring of polynomials. 
>
> C. 
>

-- 
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: https: // localhost: 8000 .

2017-04-07 Thread slelievre
Bonjour,

s'agit-il d'une utilisation sous Windows?

Il y a plusieurs façons d'installer Sage sous Windows:

- installeur SageMath pour Windows (installeur natif, qui
  requiert simplement une version 64-bit de Windows):
  utiliser l'installeur .exe le plus récent disponible à la page

https://github.com/embray/sage-windows/releases/

- le "PPA" SageMath pour Ubuntu, installable après avoir
  activé le "Windows Subsystem for Linux" (sous Windows 10 Pro)

- machine virtuelle (la solution que vous semblez avoir utilisé);
  attention les instructions disponibles sur la page

  https://wiki.sagemath.org/SageAppliance/SageMath-7

  ne sont pas tout à fait à jour. Au lieu de https://localhost:8000
  c'est maintenant https://localhost: qu'il faut lancer, je crois.

- installer Cygwin et compiler depuis les sources
  (pour les développeurs aguerris).

Ces pistes vous aident-elles à utiliser Sage?

Sinon, pourriez-vous indiquer quelle version de Linux, MacOS
ou Windows est installée sur votre ordinateur, et quelle version
de SageMath vous avez installée?

Cordialement
Samuel Lelièvre



Le mercredi 29 mars 2017 21:44:44 UTC+2, Mogo Sympa a écrit :
>
> j'essai juste d'utiliser l'interface notebook et il semble probable de se 
> connecter à https: //localhost:8000   que je parviens pas ni avec google ni 
> avec firefox. je vous pardon pour le surnom que j'utilise.
>
> les navigateur affiche "localhost" n'autorise pas la connexion et je ne 
>  sais plus quoi faire.
>
> *bien cordialement.
>
> Le mercredi 29 mars 2017 17:42:21 UTC+2, Mogo Sympa a écrit :
>>
>> bonjour tout le monde,
>>
>> j'ai instalé virtual machine et sage mais je parviens toujours pas à 
>> acceder à  https: // localhost: 8000  .
>>
>> j'ai vraiment besoins des coup de pouce.
>>
>> merci  
>>
>>
>>
>>
>>
>>

-- 
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: Sage 7.6 installation on OS 10.12 problems

2017-04-07 Thread slelievre

Wed 2017-04-05 00:36:04 UTC+2, Volker Braun:
>
> On Monday, April 3, 2017 at 2:22:48 AM UTC+2, Ruben Zilibowitz wrote:
>>
>> ImportError: 
>> dlopen(/Volumes/LaCie/Applications/SageMath-7.6.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so,
>>  
>> 2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString
>>   Referenced from: 
>> /Volumes/LaCie/Applications/SageMath-7.6.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
>>   Expected in: flat namespace
>>  in 
>> /Volumes/LaCie/Applications/SageMath-7.6.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
>>
>
>  Well thats the tell-tale sign of "python" not being the python that ships 
> with OSX. Clean up $PATH and try again...
>

Ruben, if you open a terminal and type

echo $PATH

and hit return, what output do you get?
 

-- 
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] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Dima Pasechnik


On Friday, April 7, 2017 at 5:18:34 PM UTC+1, Chris Seberino wrote:
>
> I have no doubt you know about group theory and math in general more than 
> me.  I have no doubt
> your answer is defensible and accurate.  
>
> What I'm concerned about is the young students and what they expect to see 
> when
> they type factor( ... ).
>

They have to get used to the fact that the answer depends upon the domain 
the object they factor
comes from. Think e.g. about x^2-2  factored as (x-sqrt(2))*(x+sqrt(2)) 
 --- or not, if we only allow rational
coefficients in our polynomials. Or x^2+1 being factored as (x-i)*(x+i) 
 --- or not, if we only allow real coefficients...



> cs
>
> On Friday, April 7, 2017 at 9:56:31 AM UTC-5, projetmbc wrote:
>>
>> Just try : 
>>
>> - 
>> Z_T, t =  ZZ['x'].objgen() 
>>
>> print factor(6*t+3) 
>> print factor(6*x+3) 
>> - 
>>
>> You will se that you need to use the right ring of polynomials. 
>>
>> C. 
>>
>

-- 
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: Sage Crash Report

2017-04-07 Thread Dima Pasechnik
What version of Sage is this? It's not clear from the log.

The log mentions iPython 4, whereas Sage has switched to iPython 5.
It could be that the error comes from some stale content in ~/.sage/

As a 1st check, try to rename ~/.sage/ to something else, and see if it 
starts then.


On Friday, April 7, 2017 at 2:24:17 AM UTC+1, Kevin Buzzard wrote:
>
>
>

-- 
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: Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Ralf Stephan
On Friday, April 7, 2017 at 5:29:39 PM UTC+2, Chris Seberino wrote:
>
> I *agree* that the answer should be expanded in your example.
> But when you use the factor function it should have an effect no!?
>

That's why I gave the link to the ticket, which you can follow or 
participate in. 

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