Re: [sage-support] Unable to import Normaliz

2021-06-06 Thread Isuru Fernando
You need to install `pynormaliz` by doing `conda install pynormaliz`.

Isuru

On Sun, Jun 6, 2021 at 8:56 AM Dima Pasechnik  wrote:

> you should do these installations at conda prompt,
> not at Sage's prompt.
>
> On Sun, 6 Jun 2021, 13:10 Hriday Bharat Thakkar, 
> wrote:
>
>> This is an update. I followed the steps for installation of normaliz via
>> conda. I did the following and was able to install normaliz but when I
>> import normaliz there's an error "Normaliz not found."  It asks me restart
>> my kernel in order to use the updated packages. Can you please advice how I
>> can restart my kernel or what I need to do differently? It seems like conda
>> install normaliz worked.
>>
>> Attached is the steps I did:
>>
>>
>>
>> On Sunday, June 6, 2021 at 5:24:38 PM UTC+5:30 Hriday Bharat Thakkar
>> wrote:
>>
>>> I followed the instructions in
>>> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>>>
>>> but I'm still unable to install normaliz using 'sage -i normaliz'. Here
>>> is the screenshot. Can you please let me know if I've done something
>>> incorrectly or if there is some other way to install normaliz/pynormaliz.
>>> Thanks!
>>> On Sunday, June 6, 2021 at 2:44:46 PM UTC+5:30 dim...@gmail.com wrote:
>>>


 On Sun, 6 Jun 2021, 09:49 Hriday Bharat Thakkar, 
 wrote:

> I would like to use the Normaliz library to compute Ehrhart
> polynomials, etc. I have successfully installed Normaliz from their github
> and Python's IDLE environment detects it but SageMath doesn't seem to be
> able to detect this installation.
>
> Can you please advice how I can get SageMath to use Normaliz? So far,
> I've tried installing Normaliz using two ways:
> 1. sage -i normaliz (error: make: *** No rule to make target
> `all-toolchain'.  Stop.)
>

 this might need Sage built from source.

 2. conda install normaliz libnormaliz from
> https://doc.sagemath.org/html/en/reference/spkg/normaliz.html
> (error for 2. is attached as a screenshot)
>

 this needs conda channel with Sage (conda-forge). See


 https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda




> Thanks much!
>
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/8781be82-0f35-4529-ba3d-cad5e867f9a4n%40googlegroups.com
> 
> .
>
 --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/fb0e28e8-d427-4dc8-9ff6-c8c5c81bdf30n%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq1Za4-aMv0501AUCHQJDeHPOHwqnx4EUoiQd%2B%3DpLexBTA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CA%2B01voMB3jtKBP4i%2BBTF_KScS1GpBawFgSVf9R%2BJPXAXPRa-hA%40mail.gmail.com.


[sage-support] Re: Matrix multiplication by symbolic vector

2021-06-06 Thread slelievre
Don't feel stupid, but learn from your mistakes.
Go beyond "this works / this doesn't work":

> [c[i] for i in range(0..2)] <-- this doesn't work

Read error messages, they contain useful information.
```
sage: [c[i] for i in range(0..2)]
---
TypeError Traceback (most recent call last)
 in 
> 1 [c[i] for i in range(ellipsis_iter(Integer(0),Ellipsis,Integer(2)))]

TypeError: 'generator' object cannot be interpreted as an integer
```
Here, you can see that
- `range(0..2)` was preparsed as
  `range(ellipsis_iter(Integer(0),Ellipsis,Integer(2)))`,
- we get a type error because something (here: range)
  expected an integer and got something else
This gives a clue of what went wrong: range wants
integer arguments: range(2), range(1, 3);  but not
range of an ellipsis iteration like `0 .. 2`.

Now, about the proposed code after fixing this range mistake.

After defining:
```
sage: R = PolynomialRing(RR, 'c', 20)
sage: c = R.gens()
sage: c = vector([c[i] for i in (0 .. 2)])
sage: Z1 = matrix([[1, 2], [3, 4]])*vector([c[1], c[2]])
```
we have:
```
sage: Z1
(c1 + 2.00*c2, 3.00*c1 + 4.00*c2)
sage: Z1[0]
c1 + 2.00*c2
```

This `Z1[0]` is a polynomial, not a symbolic expression:
```
sage: parent(Z1[0])
Multivariate Polynomial Ring in c0, c1, c2, ..., c18, c19
over Real Field with 53 bits of precision
```

So `== 0` tests whether it is zero:
```
sage: Z1[0] == 0
False
```
and does not give a symbolic equation.

To get an equation, convert `Z1[0]` to the symbolic ring:
```
sage: SR(Z1[0]) == 0
1.00*c1 + 2.00*c2 == 0
```

To use `solve`, both the equation and the variable
must be in the symbolic ring.

Converting polynomial variables over the floating-point reals `RR`
to symbolic variables is a little more tricky:
```
sage: SR(c[1])
1.00*c1
sage: SR(c[1]).variables()[0]
c1
```

>From there:
```
sage: solve(SR(Z1[0]) == 0, SR(c[1]).variables()[0])
[c1 == -2*c2]
```

Working over the integers or the rationals simplifies things a bit:
```
sage: R = PolynomialRing(QQ, 'c', 20)
sage: c = vector(R.gens())
sage: c[1:3]
(c1, c2)
sage: Z1 = matrix([[1, 2], [3, 4]])*c[1:3]
sage: Z1
(c1 + 2*c2, 3*c1 + 4*c2)
sage: Z1[0]
c1 + 2*c2
sage: SR(Z1[0])
c1 + 2*c2
sage: SR(c[1])
c1
sage: solve(SR(Z1[0]) == 0, SR(c[1]))
[c1 == -2*c2]
```

Note that for equations of the form `== 0`,
you can skip the `== 0` when calling `solve`,
feeding it only the left hand side:
```
sage: solve(SR(Z1[0]), SR(c[1]))
[c1 == -2*c2]
```

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ef4c405c-7160-41fa-96c0-522fcde7cfa4n%40googlegroups.com.


Re: [sage-support] Unable to import Normaliz

2021-06-06 Thread Dima Pasechnik
you should do these installations at conda prompt,
not at Sage's prompt.

On Sun, 6 Jun 2021, 13:10 Hriday Bharat Thakkar, 
wrote:

> This is an update. I followed the steps for installation of normaliz via
> conda. I did the following and was able to install normaliz but when I
> import normaliz there's an error "Normaliz not found."  It asks me restart
> my kernel in order to use the updated packages. Can you please advice how I
> can restart my kernel or what I need to do differently? It seems like conda
> install normaliz worked.
>
> Attached is the steps I did:
>
>
>
> On Sunday, June 6, 2021 at 5:24:38 PM UTC+5:30 Hriday Bharat Thakkar wrote:
>
>> I followed the instructions in
>> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>>
>> but I'm still unable to install normaliz using 'sage -i normaliz'. Here
>> is the screenshot. Can you please let me know if I've done something
>> incorrectly or if there is some other way to install normaliz/pynormaliz.
>> Thanks!
>> On Sunday, June 6, 2021 at 2:44:46 PM UTC+5:30 dim...@gmail.com wrote:
>>
>>>
>>>
>>> On Sun, 6 Jun 2021, 09:49 Hriday Bharat Thakkar, 
>>> wrote:
>>>
 I would like to use the Normaliz library to compute Ehrhart
 polynomials, etc. I have successfully installed Normaliz from their github
 and Python's IDLE environment detects it but SageMath doesn't seem to be
 able to detect this installation.

 Can you please advice how I can get SageMath to use Normaliz? So far,
 I've tried installing Normaliz using two ways:
 1. sage -i normaliz (error: make: *** No rule to make target
 `all-toolchain'.  Stop.)

>>>
>>> this might need Sage built from source.
>>>
>>> 2. conda install normaliz libnormaliz from
 https://doc.sagemath.org/html/en/reference/spkg/normaliz.html
 (error for 2. is attached as a screenshot)

>>>
>>> this needs conda channel with Sage (conda-forge). See
>>>
>>>
>>> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>>>
>>>
>>>
>>>
 Thanks much!


 --
 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/sage-support/8781be82-0f35-4529-ba3d-cad5e867f9a4n%40googlegroups.com
 
 .

>>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/fb0e28e8-d427-4dc8-9ff6-c8c5c81bdf30n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq1Za4-aMv0501AUCHQJDeHPOHwqnx4EUoiQd%2B%3DpLexBTA%40mail.gmail.com.


Re: [sage-support] Unable to import Normaliz

2021-06-06 Thread Dima Pasechnik
I thought that normaliz is available as a conda package

On Sun, 6 Jun 2021, 12:54 Hriday Bharat Thakkar, 
wrote:

> I followed the instructions in
> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>
> but I'm still unable to install normaliz using 'sage -i normaliz'. Here is
> the screenshot. Can you please let me know if I've done something
> incorrectly or if there is some other way to install normaliz/pynormaliz.
> Thanks!
> On Sunday, June 6, 2021 at 2:44:46 PM UTC+5:30 dim...@gmail.com wrote:
>
>>
>>
>> On Sun, 6 Jun 2021, 09:49 Hriday Bharat Thakkar, 
>> wrote:
>>
>>> I would like to use the Normaliz library to compute Ehrhart polynomials,
>>> etc. I have successfully installed Normaliz from their github and Python's
>>> IDLE environment detects it but SageMath doesn't seem to be able to detect
>>> this installation.
>>>
>>> Can you please advice how I can get SageMath to use Normaliz? So far,
>>> I've tried installing Normaliz using two ways:
>>> 1. sage -i normaliz (error: make: *** No rule to make target
>>> `all-toolchain'.  Stop.)
>>>
>>
>> this might need Sage built from source.
>>
>> 2. conda install normaliz libnormaliz from
>>> https://doc.sagemath.org/html/en/reference/spkg/normaliz.html
>>> (error for 2. is attached as a screenshot)
>>>
>>
>> this needs conda channel with Sage (conda-forge). See
>>
>>
>> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>>
>>
>>
>>
>>> Thanks much!
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-support/8781be82-0f35-4529-ba3d-cad5e867f9a4n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/77099d0f-0f80-43ea-b783-58a77d71b291n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0SQuD37AMR3w8qF6djxB43Zd4GZj2gHtcGAGP7wysL4g%40mail.gmail.com.


[sage-support] Re: Matrix multiplication by symbolic vector

2021-06-06 Thread cyrille piatecki
OK, one more time I feel stupid and one more time thanks to answer. But now 
look at this

R = PolynomialRing(RR, 'c', 20)
c = R.gens()
c=vector([c[i] for i in (0..2)])
Z1=matrix([[1, 2],[3,4]])*vector([c[1],c[2]])
show(Z1)<--- correct display
But c and c[1] is not recognized. So I do not know how to call the c's.
solve(Z1[0]==0,c)

solve(Z1[0]==0,c[1])


On Sunday, June 6, 2021 at 12:14:15 PM UTC+2 slelievre wrote:

> 2021-06-06 10:47:24 UTC+2, Cyrille Piatecki:
> >
> > [c[i] for i in range(0..2)] <-- this doesn't work
>
> You are mixing two different options:
>
> - range:
>   [c[i] for i in range(2)]
>   [c[i] for i in range(0, 2)]
>
> - ellipsis:
>   [c[i] for i in (0 .. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/827e65e0-f2ea-4ef7-bf6c-2cb9eeed105en%40googlegroups.com.


Re: [sage-support] Unable to import Normaliz

2021-06-06 Thread Hriday Bharat Thakkar
This is an update. I followed the steps for installation of normaliz via 
conda. I did the following and was able to install normaliz but when I 
import normaliz there's an error "Normaliz not found."  It asks me restart 
my kernel in order to use the updated packages. Can you please advice how I 
can restart my kernel or what I need to do differently? It seems like conda 
install normaliz worked. 

Attached is the steps I did: 



On Sunday, June 6, 2021 at 5:24:38 PM UTC+5:30 Hriday Bharat Thakkar wrote:

> I followed the instructions in 
> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>  
> but I'm still unable to install normaliz using 'sage -i normaliz'. Here is 
> the screenshot. Can you please let me know if I've done something 
> incorrectly or if there is some other way to install normaliz/pynormaliz. 
> Thanks!
> On Sunday, June 6, 2021 at 2:44:46 PM UTC+5:30 dim...@gmail.com wrote:
>
>>
>>
>> On Sun, 6 Jun 2021, 09:49 Hriday Bharat Thakkar,  
>> wrote:
>>
>>> I would like to use the Normaliz library to compute Ehrhart polynomials, 
>>> etc. I have successfully installed Normaliz from their github and Python's 
>>> IDLE environment detects it but SageMath doesn't seem to be able to detect 
>>> this installation. 
>>>
>>> Can you please advice how I can get SageMath to use Normaliz? So far, 
>>> I've tried installing Normaliz using two ways: 
>>> 1. sage -i normaliz (error: make: *** No rule to make target 
>>> `all-toolchain'.  Stop.)
>>>
>>
>> this might need Sage built from source.
>>
>> 2. conda install normaliz libnormaliz from 
>>> https://doc.sagemath.org/html/en/reference/spkg/normaliz.html
>>> (error for 2. is attached as a screenshot)
>>>
>>
>> this needs conda channel with Sage (conda-forge). See
>>
>>
>> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>>
>>
>>
>>
>>> Thanks much! 
>>>
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/8781be82-0f35-4529-ba3d-cad5e867f9a4n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fb0e28e8-d427-4dc8-9ff6-c8c5c81bdf30n%40googlegroups.com.


Re: [sage-support] Unable to import Normaliz

2021-06-06 Thread Hriday Bharat Thakkar
I followed the instructions in 
https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
 
but I'm still unable to install normaliz using 'sage -i normaliz'. Here is 
the screenshot. Can you please let me know if I've done something 
incorrectly or if there is some other way to install normaliz/pynormaliz. 
Thanks!
On Sunday, June 6, 2021 at 2:44:46 PM UTC+5:30 dim...@gmail.com wrote:

>
>
> On Sun, 6 Jun 2021, 09:49 Hriday Bharat Thakkar,  
> wrote:
>
>> I would like to use the Normaliz library to compute Ehrhart polynomials, 
>> etc. I have successfully installed Normaliz from their github and Python's 
>> IDLE environment detects it but SageMath doesn't seem to be able to detect 
>> this installation. 
>>
>> Can you please advice how I can get SageMath to use Normaliz? So far, 
>> I've tried installing Normaliz using two ways: 
>> 1. sage -i normaliz (error: make: *** No rule to make target 
>> `all-toolchain'.  Stop.)
>>
>
> this might need Sage built from source.
>
> 2. conda install normaliz libnormaliz from 
>> https://doc.sagemath.org/html/en/reference/spkg/normaliz.html
>> (error for 2. is attached as a screenshot)
>>
>
> this needs conda channel with Sage (conda-forge). See
>
>
> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>
>
>
>
>> Thanks much! 
>>
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/8781be82-0f35-4529-ba3d-cad5e867f9a4n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/77099d0f-0f80-43ea-b783-58a77d71b291n%40googlegroups.com.


[sage-support] Re: Matrix multiplication by symbolic vector

2021-06-06 Thread slelievre
2021-06-06 10:47:24 UTC+2, Cyrille Piatecki:
>
> [c[i] for i in range(0..2)] <-- this doesn't work

You are mixing two different options:

- range:
  [c[i] for i in range(2)]
  [c[i] for i in range(0, 2)]

- ellipsis:
  [c[i] for i in (0 .. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/099cbcb7-2455-4b4c-982e-7214c6fa507fn%40googlegroups.com.


Re: [sage-support] Unable to import Normaliz

2021-06-06 Thread Dima Pasechnik
On Sun, 6 Jun 2021, 09:49 Hriday Bharat Thakkar, 
wrote:

> I would like to use the Normaliz library to compute Ehrhart polynomials,
> etc. I have successfully installed Normaliz from their github and Python's
> IDLE environment detects it but SageMath doesn't seem to be able to detect
> this installation.
>
> Can you please advice how I can get SageMath to use Normaliz? So far, I've
> tried installing Normaliz using two ways:
> 1. sage -i normaliz (error: make: *** No rule to make target
> `all-toolchain'.  Stop.)
>

this might need Sage built from source.

2. conda install normaliz libnormaliz from
> https://doc.sagemath.org/html/en/reference/spkg/normaliz.html
> (error for 2. is attached as a screenshot)
>

this needs conda channel with Sage (conda-forge). See

https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda




> Thanks much!
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/8781be82-0f35-4529-ba3d-cad5e867f9a4n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq2iKFxb3vk_jtnSS-n%2BmaPwb3cqcab7tbZG5PhbzoOfGQ%40mail.gmail.com.


[sage-support] Unable to import Normaliz

2021-06-06 Thread Hriday Bharat Thakkar
I would like to use the Normaliz library to compute Ehrhart polynomials, 
etc. I have successfully installed Normaliz from their github and Python's 
IDLE environment detects it but SageMath doesn't seem to be able to detect 
this installation. 

Can you please advice how I can get SageMath to use Normaliz? So far, I've 
tried installing Normaliz using two ways: 
1. sage -i normaliz (error: make: *** No rule to make target 
`all-toolchain'.  Stop.)
2. conda install normaliz libnormaliz 
from https://doc.sagemath.org/html/en/reference/spkg/normaliz.html
(error for 2. is attached as a screenshot)

Thanks much! 


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8781be82-0f35-4529-ba3d-cad5e867f9a4n%40googlegroups.com.


[sage-support] Matrix multiplication by symbolic vector

2021-06-06 Thread cyrille piatecki

Hello, usually I ask question by Ask sagemath but the server seems down 
since yesterday.

I would like to define a matrix function with symbolic variables (Linear or 
quadratic) of the form x A x,   B x...  and also linear inequalities of the 
form C x <= b for any size of the A, B and C matrix. The final problem is 
to optimize or to manipulate equations or inequations.

Whichever be my fails effort, and my reading comfort me, it seems not to be 
allowed in Sagemath which seems strange. But a recent reading seems to say 
that 

R = PolynomialRing(RR, 'c', 20)
c = R.gens()

could solve my problem. In fact, if I define a list of c[i]

show([c[0],c[1],c[2]]) <-- this work
[c[i] for i in range(0..2)] <-- this doesn't work

I need to understand

Thanks




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/0547b1aa-97e7-47d8-a2df-edaed05b3836n%40googlegroups.com.


[sage-support] Re: Unable to install SageMath successfully

2021-06-06 Thread Hriday Bharat Thakkar
Thanks so much! I installed SageMath from 
https://github.com/3-manifolds/Sage_macOS/releases and it seems to be 
working fine. 

On Sunday, June 6, 2021 at 4:39:02 AM UTC+5:30 slelievre wrote:

> In a terminal, run the following commands:
> ```
> $ xattr -cr /Applications/SageMath
> ```
> This will clear the extended attributes of
> all the files in /Applications/SageMath
> and hopefully that will allow you to run it
> without Apple's Gatekeeper interfering.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/dc579b0e-edd0-4ccd-8259-eae8a50eb280n%40googlegroups.com.