[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread Niranjana K M
Regarding axes Formatter, inserting
rcParams['axes.formatter.use_mathtext'] = True
just after
from matplotlib import rcParams 
in  graphics.py  makes the scientific notation to be typeset as  x 10^7 
(for example). This looks nicer than 1e7. See the figure. Though it does 
not solve the current problem, aesthetically it looks nice whenever the 
scaling is displayed.

[image: index.png]

On Thursday, July 28, 2022 at 1:45:18 AM UTC+5:30 emanuel.c...@gmail.com 
wrote:

> Le mercredi 27 juillet 2022 à 16:53:39 UTC+2, niran…@gmail.com a écrit :
>
> Dear Kcrisman,
>> I will look into it *if* you promise me to *review* and *close* my 
>> another ticket   https://trac.sagemath.org/ticket/34038
>> based on the thread   
>> https://groups.google.com/g/sage-devel/c/tMH1RZNyC9s/m/DRwexGpzAwAJ
>>
> This ticket contains suggestion, is marked needs_review, but proposes no 
> branch to review. Could you propose a patch implementing your suggestions ? 
> The Developer’s guide 
>  will guide you on 
> the road to proposing such a patch as a branch of the Sage source git 
> tree…
>
> 😀 
>>
>> With regards
>> Niranjana
>>
>> On Wednesday, July 27, 2022 at 7:05:51 PM UTC+5:30 kcrisman wrote:
>>
>>> This is a good question, and one that has been around for a while in 
>>> some form, unfortunately; see https://trac.sagemath.org/ticket/7964 for 
>>> a related ticket.   See https://trac.sagemath.org/ticket/30983 for a 
>>> ticket that complains instead about something else but which is closely 
>>> related.
>>>
>>> We would be grateful for any additional insight you might provide.  Here 
>>> are some pieces of info about where we use matplotlib that you might find 
>>> useful in that regard.
>>>
>>> We use some specific matplotlib ticker and formatter options which don't 
>>> always play well here.  See 
>>> https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L2326
>>>  
>>> for _matplotlib_tick_formatter in sage/plot/graphics.py
>>>
>>> In particular, note that, under ordinary circumstances,
>>>
>>> y_locator = MaxNLocator(**locator_options)
>>> y_formatter = ScalarFormatter()
>>>
>>> That is very close to the defaults for matplotlib, but maybe we are 
>>> using things in an antiquated way.  See e.g. 
>>> https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.ScalarFormatter
>>>  
>>>
>>> On the other hand, if (as I suspect) that isn't the root issue, it 
>>> probably is in the save method (
>>> https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L3198).
>>>  
>>>  My first thought was that somehow fig_tight played a role, but 
>>>
>>> sage: plot(x^2,(x,0,5000),fig_tight=False)
>>>
>>> doesn't seem to be any different than the one you pointed out.  Another 
>>> possibility is tight_layout (
>>> https://matplotlib.org/stable/api/tight_layout_api.html) which we do 
>>> use, but which a little experimentation doesn't seem to indicate is the 
>>> problem either.
>>> On Tuesday, July 26, 2022 at 5:15:11 AM UTC-4 niran...@gmail.com wrote:
>>>
 Dear all,
 "2D plotting" doc says,
 "Another thing to be aware of with axis labeling is that when the 
 labels have quite different orders of magnitude or are very large, 
 scientific notation (the e  notation for powers of ten) is used."

 But display of this multiplier power for the scaled y-axis is missing 
 if the plot starts with x=0 or at most will be missing till the x-axis 
 detaches from the origin. Following examples illustrates it,

 *sage:*  plot(x^2,(x,0,5000))  # missing display of 1e7 above y-axis
 *sage:*  plot(x^2,(x,50,5000))  # missing display of 1e7 above y-axis
 *sage:*  plot(x^2,(x,100,5000))  # display of 1e7 above y-axis is 
 visible

 On the other side matplotlib natively always displays the scale 
 multiplier (if any) whenever numbers are large. For example:

 *sage:*  import matplotlib.pyplot as plt
 *sage:*  import numpy as np
 *sage:*  z = np.linspace(0, 5000, 100)
 *sage:*  plt.plot(z, z**2)
 *sage:*  plt.show()

 My other plots involved electric field calculations which had 
 magnitudes around 1/epsilon_0 which is 1/(8.85E-12) =~ 10^11. For those 
 plots starting with x=0 the display of multiplier used for y-axis were 
 missing.

 With regards
 Niranjana

>>> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/a83484f1-796b-4872-986a-8ac2541db4b3n%40googlegroups.com.


[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread Niranjana K M
Very sorry. I am new to git and that was my first trac ticket ever. If 
somebody can take it up patching i would be happy.
On Thursday, July 28, 2022 at 1:45:18 AM UTC+5:30 emanuel.c...@gmail.com 
wrote:

> Le mercredi 27 juillet 2022 à 16:53:39 UTC+2, niran…@gmail.com a écrit :
>
> Dear Kcrisman,
>> I will look into it *if* you promise me to *review* and *close* my 
>> another ticket   https://trac.sagemath.org/ticket/34038
>> based on the thread   
>> https://groups.google.com/g/sage-devel/c/tMH1RZNyC9s/m/DRwexGpzAwAJ
>>
> This ticket contains suggestion, is marked needs_review, but proposes no 
> branch to review. Could you propose a patch implementing your suggestions ? 
> The Developer’s guide 
>  will guide you on 
> the road to proposing such a patch as a branch of the Sage source git 
> tree…
>
> 😀 
>>
>> With regards
>> Niranjana
>>
>> On Wednesday, July 27, 2022 at 7:05:51 PM UTC+5:30 kcrisman wrote:
>>
>>> This is a good question, and one that has been around for a while in 
>>> some form, unfortunately; see https://trac.sagemath.org/ticket/7964 for 
>>> a related ticket.   See https://trac.sagemath.org/ticket/30983 for a 
>>> ticket that complains instead about something else but which is closely 
>>> related.
>>>
>>> We would be grateful for any additional insight you might provide.  Here 
>>> are some pieces of info about where we use matplotlib that you might find 
>>> useful in that regard.
>>>
>>> We use some specific matplotlib ticker and formatter options which don't 
>>> always play well here.  See 
>>> https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L2326
>>>  
>>> for _matplotlib_tick_formatter in sage/plot/graphics.py
>>>
>>> In particular, note that, under ordinary circumstances,
>>>
>>> y_locator = MaxNLocator(**locator_options)
>>> y_formatter = ScalarFormatter()
>>>
>>> That is very close to the defaults for matplotlib, but maybe we are 
>>> using things in an antiquated way.  See e.g. 
>>> https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.ScalarFormatter
>>>  
>>>
>>> On the other hand, if (as I suspect) that isn't the root issue, it 
>>> probably is in the save method (
>>> https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L3198).
>>>  
>>>  My first thought was that somehow fig_tight played a role, but 
>>>
>>> sage: plot(x^2,(x,0,5000),fig_tight=False)
>>>
>>> doesn't seem to be any different than the one you pointed out.  Another 
>>> possibility is tight_layout (
>>> https://matplotlib.org/stable/api/tight_layout_api.html) which we do 
>>> use, but which a little experimentation doesn't seem to indicate is the 
>>> problem either.
>>> On Tuesday, July 26, 2022 at 5:15:11 AM UTC-4 niran...@gmail.com wrote:
>>>
 Dear all,
 "2D plotting" doc says,
 "Another thing to be aware of with axis labeling is that when the 
 labels have quite different orders of magnitude or are very large, 
 scientific notation (the e  notation for powers of ten) is used."

 But display of this multiplier power for the scaled y-axis is missing 
 if the plot starts with x=0 or at most will be missing till the x-axis 
 detaches from the origin. Following examples illustrates it,

 *sage:*  plot(x^2,(x,0,5000))  # missing display of 1e7 above y-axis
 *sage:*  plot(x^2,(x,50,5000))  # missing display of 1e7 above y-axis
 *sage:*  plot(x^2,(x,100,5000))  # display of 1e7 above y-axis is 
 visible

 On the other side matplotlib natively always displays the scale 
 multiplier (if any) whenever numbers are large. For example:

 *sage:*  import matplotlib.pyplot as plt
 *sage:*  import numpy as np
 *sage:*  z = np.linspace(0, 5000, 100)
 *sage:*  plt.plot(z, z**2)
 *sage:*  plt.show()

 My other plots involved electric field calculations which had 
 magnitudes around 1/epsilon_0 which is 1/(8.85E-12) =~ 10^11. For those 
 plots starting with x=0 the display of multiplier used for y-axis were 
 missing.

 With regards
 Niranjana

>>> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/aaf229fa-b702-4a91-9208-66e9a4ca9d91n%40googlegroups.com.


[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread Emmanuel Charpentier


Le mercredi 27 juillet 2022 à 16:53:39 UTC+2, niran…@gmail.com a écrit :

Dear Kcrisman,
> I will look into it *if* you promise me to *review* and *close* my 
> another ticket   https://trac.sagemath.org/ticket/34038
> based on the thread   
> https://groups.google.com/g/sage-devel/c/tMH1RZNyC9s/m/DRwexGpzAwAJ
>
This ticket contains suggestion, is marked needs_review, but proposes no 
branch to review. Could you propose a patch implementing your suggestions ? 
The Developer’s guide 
 will guide you on 
the road to proposing such a patch as a branch of the Sage source git tree…

😀 
>
> With regards
> Niranjana
>
> On Wednesday, July 27, 2022 at 7:05:51 PM UTC+5:30 kcrisman wrote:
>
>> This is a good question, and one that has been around for a while in some 
>> form, unfortunately; see https://trac.sagemath.org/ticket/7964 for a 
>> related ticket.   See https://trac.sagemath.org/ticket/30983 for a 
>> ticket that complains instead about something else but which is closely 
>> related.
>>
>> We would be grateful for any additional insight you might provide.  Here 
>> are some pieces of info about where we use matplotlib that you might find 
>> useful in that regard.
>>
>> We use some specific matplotlib ticker and formatter options which don't 
>> always play well here.  See 
>> https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L2326
>>  
>> for _matplotlib_tick_formatter in sage/plot/graphics.py
>>
>> In particular, note that, under ordinary circumstances,
>>
>> y_locator = MaxNLocator(**locator_options)
>> y_formatter = ScalarFormatter()
>>
>> That is very close to the defaults for matplotlib, but maybe we are using 
>> things in an antiquated way.  See e.g. 
>> https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.ScalarFormatter
>>  
>>
>> On the other hand, if (as I suspect) that isn't the root issue, it 
>> probably is in the save method (
>> https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L3198).
>>  
>>  My first thought was that somehow fig_tight played a role, but 
>>
>> sage: plot(x^2,(x,0,5000),fig_tight=False)
>>
>> doesn't seem to be any different than the one you pointed out.  Another 
>> possibility is tight_layout (
>> https://matplotlib.org/stable/api/tight_layout_api.html) which we do 
>> use, but which a little experimentation doesn't seem to indicate is the 
>> problem either.
>> On Tuesday, July 26, 2022 at 5:15:11 AM UTC-4 niran...@gmail.com wrote:
>>
>>> Dear all,
>>> "2D plotting" doc says,
>>> "Another thing to be aware of with axis labeling is that when the labels 
>>> have quite different orders of magnitude or are very large, scientific 
>>> notation (the e  notation for powers of ten) is used."
>>>
>>> But display of this multiplier power for the scaled y-axis is missing if 
>>> the plot starts with x=0 or at most will be missing till the x-axis 
>>> detaches from the origin. Following examples illustrates it,
>>>
>>> *sage:*  plot(x^2,(x,0,5000))  # missing display of 1e7 above y-axis
>>> *sage:*  plot(x^2,(x,50,5000))  # missing display of 1e7 above y-axis
>>> *sage:*  plot(x^2,(x,100,5000))  # display of 1e7 above y-axis is 
>>> visible
>>>
>>> On the other side matplotlib natively always displays the scale 
>>> multiplier (if any) whenever numbers are large. For example:
>>>
>>> *sage:*  import matplotlib.pyplot as plt
>>> *sage:*  import numpy as np
>>> *sage:*  z = np.linspace(0, 5000, 100)
>>> *sage:*  plt.plot(z, z**2)
>>> *sage:*  plt.show()
>>>
>>> My other plots involved electric field calculations which had magnitudes 
>>> around 1/epsilon_0 which is 1/(8.85E-12) =~ 10^11. For those plots starting 
>>> with x=0 the display of multiplier used for y-axis were missing.
>>>
>>> With regards
>>> Niranjana
>>>
>> ​

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5c00353d-3948-4f61-9a19-60baf5118965n%40googlegroups.com.


Re: [sage-devel] Return "type" of the `logarithmic_embedding` function

2022-07-27 Thread John Cremona
I forwarded this to sage-nt in case there are people there with an opinion.
I'll give my answer there too.

Thanks for working on  this,

John

On Wed, 27 Jul 2022, 10:49 Jing Guo,  wrote:

> Hi,
>
> I am implementing the `logarithmic_embedding` function [0] (based on
> Krumm's code) for my GSoC project, which is used for implementing
> `points_of_bounded_height` function [1].
>
> However, we encounter the following problem:
>
> By definition (Def. 4.9.6, on page 208 of "A course in computational
> algebraic number theory"), the logarithmic embedding is a map from number
> field K to R^n. We are not sure how this function should return, and we
> consider two options:
>
> 1. The function returns a function closure, see examples in [2]
>
> 2. It returns a morphism, which is more mathematically correct:
>
> V = VectorSpace(RR, 1)
> K = CyclotomicField(3)
> B = Hom(K, V, category=Sets())
> phi = B(log_map)
> phi
>
> Which one do you think is better from math and software engineering
> perspectives? Are there any other approaches that would be better for this
> case?
>
> Thank you.
>
> [0]: https://trac.sagemath.org/ticket/34212
> [1]: https://trac.sagemath.org/ticket/32686
> [2]:
> https://git.sagemath.org/sage.git/diff?id=8129e332b20c8cd73b50f2e1d48222e7a706ba21
>
> Jing
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/ace5d6d9-22d3-4adf-9cc0-654bbc72c915n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAD0p0K5UVWR_JtxrjjRmvbuvh4O%2Bi32417D4WKx9%3DbwrQ%2BPPLQ%40mail.gmail.com.


[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread Niranjana K M
Dear Kcrisman,
I will look into it *if* you promise me to *review* and *close* my 
another ticket   https://trac.sagemath.org/ticket/34038
based on the thread   
https://groups.google.com/g/sage-devel/c/tMH1RZNyC9s/m/DRwexGpzAwAJ
😀 

With regards
Niranjana

On Wednesday, July 27, 2022 at 7:05:51 PM UTC+5:30 kcrisman wrote:

> This is a good question, and one that has been around for a while in some 
> form, unfortunately; see https://trac.sagemath.org/ticket/7964 for a 
> related ticket.   See https://trac.sagemath.org/ticket/30983 for a ticket 
> that complains instead about something else but which is closely related.
>
> We would be grateful for any additional insight you might provide.  Here 
> are some pieces of info about where we use matplotlib that you might find 
> useful in that regard.
>
> We use some specific matplotlib ticker and formatter options which don't 
> always play well here.  See 
> https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L2326 
> for _matplotlib_tick_formatter in sage/plot/graphics.py
>
> In particular, note that, under ordinary circumstances,
>
> y_locator = MaxNLocator(**locator_options)
> y_formatter = ScalarFormatter()
>
> That is very close to the defaults for matplotlib, but maybe we are using 
> things in an antiquated way.  See e.g. 
> https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.ScalarFormatter
>  
>
> On the other hand, if (as I suspect) that isn't the root issue, it 
> probably is in the save method (
> https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L3198).
>  
>  My first thought was that somehow fig_tight played a role, but 
>
> sage: plot(x^2,(x,0,5000),fig_tight=False)
>
> doesn't seem to be any different than the one you pointed out.  Another 
> possibility is tight_layout (
> https://matplotlib.org/stable/api/tight_layout_api.html) which we do use, 
> but which a little experimentation doesn't seem to indicate is the problem 
> either.
> On Tuesday, July 26, 2022 at 5:15:11 AM UTC-4 niran...@gmail.com wrote:
>
>> Dear all,
>> "2D plotting" doc says,
>> "Another thing to be aware of with axis labeling is that when the labels 
>> have quite different orders of magnitude or are very large, scientific 
>> notation (the e  notation for powers of ten) is used."
>>
>> But display of this multiplier power for the scaled y-axis is missing if 
>> the plot starts with x=0 or at most will be missing till the x-axis 
>> detaches from the origin. Following examples illustrates it,
>>
>> *sage:*  plot(x^2,(x,0,5000))  # missing display of 1e7 above y-axis
>> *sage:*  plot(x^2,(x,50,5000))  # missing display of 1e7 above y-axis
>> *sage:*  plot(x^2,(x,100,5000))  # display of 1e7 above y-axis is visible
>>
>> On the other side matplotlib natively always displays the scale 
>> multiplier (if any) whenever numbers are large. For example:
>>
>> *sage:*  import matplotlib.pyplot as plt
>> *sage:*  import numpy as np
>> *sage:*  z = np.linspace(0, 5000, 100)
>> *sage:*  plt.plot(z, z**2)
>> *sage:*  plt.show()
>>
>> My other plots involved electric field calculations which had magnitudes 
>> around 1/epsilon_0 which is 1/(8.85E-12) =~ 10^11. For those plots starting 
>> with x=0 the display of multiplier used for y-axis were missing.
>>
>> With regards
>> Niranjana
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/33ada506-b846-4929-8901-712821a85f1an%40googlegroups.com.


[sage-devel] MAA mathfast

2022-07-27 Thread William Stein
Hi,

Are any sage devs or people reading this going to be at the MAA
Mathfest next week

https://www.maa.org/meetings/mathfest

There will be a CoCalc/Sage booth.  I won't be there, but Blaec
Bejarano who works fulltime on CoCalc will be running it.
Please stop by and say "hello", get stickers, or hang out.

Thanks!

William

-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CACLE5GAbD24GpEKuHukH4tcaQV_14t7KZKnXWiNseyWa7dywGQ%40mail.gmail.com.


[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread kcrisman
This is a good question, and one that has been around for a while in some 
form, unfortunately; see https://trac.sagemath.org/ticket/7964 for a 
related ticket.   See https://trac.sagemath.org/ticket/30983 for a ticket 
that complains instead about something else but which is closely related.

We would be grateful for any additional insight you might provide.  Here 
are some pieces of info about where we use matplotlib that you might find 
useful in that regard.

We use some specific matplotlib ticker and formatter options which don't 
always play well here. 
 See 
https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L2326 
for _matplotlib_tick_formatter in sage/plot/graphics.py

In particular, note that, under ordinary circumstances,

y_locator = MaxNLocator(**locator_options)
y_formatter = ScalarFormatter()

That is very close to the defaults for matplotlib, but maybe we are using 
things in an antiquated way.  See 
e.g. 
https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.ScalarFormatter
 

On the other hand, if (as I suspect) that isn't the root issue, it probably 
is in the save method 
(https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L3198).
 
 My first thought was that somehow fig_tight played a role, but 

sage: plot(x^2,(x,0,5000),fig_tight=False)

doesn't seem to be any different than the one you pointed out.  Another 
possibility is tight_layout 
(https://matplotlib.org/stable/api/tight_layout_api.html) which we do use, 
but which a little experimentation doesn't seem to indicate is the problem 
either.
On Tuesday, July 26, 2022 at 5:15:11 AM UTC-4 niran...@gmail.com wrote:

> Dear all,
> "2D plotting" doc says,
> "Another thing to be aware of with axis labeling is that when the labels 
> have quite different orders of magnitude or are very large, scientific 
> notation (the e  notation for powers of ten) is used."
>
> But display of this multiplier power for the scaled y-axis is missing if 
> the plot starts with x=0 or at most will be missing till the x-axis 
> detaches from the origin. Following examples illustrates it,
>
> *sage:*  plot(x^2,(x,0,5000))  # missing display of 1e7 above y-axis
> *sage:*  plot(x^2,(x,50,5000))  # missing display of 1e7 above y-axis
> *sage:*  plot(x^2,(x,100,5000))  # display of 1e7 above y-axis is visible
>
> On the other side matplotlib natively always displays the scale multiplier 
> (if any) whenever numbers are large. For example:
>
> *sage:*  import matplotlib.pyplot as plt
> *sage:*  import numpy as np
> *sage:*  z = np.linspace(0, 5000, 100)
> *sage:*  plt.plot(z, z**2)
> *sage:*  plt.show()
>
> My other plots involved electric field calculations which had magnitudes 
> around 1/epsilon_0 which is 1/(8.85E-12) =~ 10^11. For those plots starting 
> with x=0 the display of multiplier used for y-axis were missing.
>
> With regards
> Niranjana
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/146eb3ef-49bf-4f06-8e40-3c21c7a67bd5n%40googlegroups.com.


[sage-devel] Re: sage error 9.6 I got this errors and I don't know how to fix them

2022-07-27 Thread Samuel Lelievre
See also this guide to install SageMath in Ubuntu:

https://sagemanifolds.obspm.fr/install_ubuntu.html

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/57a131de-32d1-4f62-bdae-d0ea8870df03n%40googlegroups.com.


[sage-devel] Re: sage error 9.6 I got this errors and I don't know how to fix them

2022-07-27 Thread Samuel Lelievre
It seems you are trying to build from source.

Suggestion: run the following
```
make configure
./configure
```
and carefully read and apply the suggestions
at the end of the output of ./configure.



-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/8f3b59bf-50a7-4ec9-98c2-0ce4a5515fb6n%40googlegroups.com.


Re: [sage-devel] Re: System upgrades breaking sage frequently

2022-07-27 Thread Samuel Lelièvre
2022-07-27 00:27 UTC, Matthias Koeppe:
>
> Only packages for which we have "spkg-configure.m4" scripts
> can be taken from the system

More and more packages have such scripts. Many thanks to
people who authored and reviewed the corresponding tickets:

https://trac.sagemath.org/query?order=id&desc=1&status=closed&max=200&summary=~spkg-configure&summary=~spkg_configure&col=id&col=summary&col=author&col=reviewer&col=milestone

Remaining open tickets in that direction:

https://trac.sagemath.org/query?order=id&desc=1&status=!closed&summary=~spkg-configure&summary=~spkg_configure

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAEcArF3TxCfYPbRWvrxNyyMqg61GA7s4qz%2BEhXQoB_ziKgg6iw%40mail.gmail.com.


[sage-devel] Return "type" of the `logarithmic_embedding` function

2022-07-27 Thread Jing Guo
Hi,

I am implementing the `logarithmic_embedding` function [0] (based on 
Krumm's code) for my GSoC project, which is used for implementing 
`points_of_bounded_height` function [1].

However, we encounter the following problem:

By definition (Def. 4.9.6, on page 208 of "A course in computational 
algebraic number theory"), the logarithmic embedding is a map from number 
field K to R^n. We are not sure how this function should return, and we 
consider two options:

1. The function returns a function closure, see examples in [2]

2. It returns a morphism, which is more mathematically correct:

V = VectorSpace(RR, 1)
K = CyclotomicField(3)
B = Hom(K, V, category=Sets())
phi = B(log_map)
phi

Which one do you think is better from math and software engineering 
perspectives? Are there any other approaches that would be better for this 
case?

Thank you.

[0]: https://trac.sagemath.org/ticket/34212
[1]: https://trac.sagemath.org/ticket/32686
[2]: 
https://git.sagemath.org/sage.git/diff?id=8129e332b20c8cd73b50f2e1d48222e7a706ba21

Jing

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/ace5d6d9-22d3-4adf-9cc0-654bbc72c915n%40googlegroups.com.