Re: [sage-support] Functions source code

2024-05-02 Thread David Joyner
On Thu, May 2, 2024 at 3:57 AM Andrea Zatti  wrote:
>
> I am currently engaged in the study of graph theory for my master’s thesis. 
> For my work, I need to utilize the functions is_isomorphic and is_subgraph. I 
> want to gain a deeper understanding of the underlying code for these two 
> functions.
>
> However, when I attempt to access the documentation using the search_src() 
> function, I receive the following warning message: “Warning: the Sage 
> documentation is not available”.
>
> Could you kindly guide me to where I can find the source code of these 
> functions?

If your graph is, say, Gamma = graphs.CycleGraph(3), then try
Gamma.is_isomorphic?
for the docstring and try
Gamma.is_isomorphic??
for the docstring and source code.
Do these work for you?



>
> I appreciate your assistance in advance.
>
> Best regards.
>
> --
> 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/66ff4e07-3709-4f18-9284-4db97b40c269n%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/CAEQuuAXJc2QRRfUuAanDPbkg_0Xr5RK9etVdxwjwp6fC_MWb2A%40mail.gmail.com.


Re: [sage-support] bug in plot?

2024-03-15 Thread David Joyner
On Thu, Mar 14, 2024 at 8:17 PM Dima Pasechnik  wrote:

>
>
> On Fri, Mar 15, 2024 at 12:15 AM Dima Pasechnik  wrote:
>
>>
>>
>> On Thu, Mar 14, 2024 at 9:32 PM Dima Pasechnik  wrote:
>>
>>>
>>>
>>> On 14 March 2024 21:09:22 GMT, Nils Bruin  wrote:
>>> >I get the impression that without setting ymin,ymax you just end up
>>> with a
>>> >tiny range for the y-axis and its labelling is just very weird. I think
>>> the
>>> >labels displayed are shifted and scaled. So the error is just how the
>>> >labels are printed. That looks the same as
>>> >https://github.com/sagemath/sage/issues/34233
>>> >
>>>
>>> Good catch! So it seems indeed the same story, just on the microscale.
>>> With the patch from #34233 I get essentially the same graph, but with extra
>>> 10^-9
>>> or something like this printed above the graph.
>>> So when x is very close to 0 one indeed sees this "sharp" drop, by 10^9
>>> or something...
>>>
>>> >The default behaviour would be to derive ymin and ymax from the sampled
>>> >points, and in your point plot example, those values vary from 1-1e-6
>>> to
>>> >1+0e-6. So I think the range is derived appropriately. The labels on
>>> the
>>> >y-axis are just printed in a misguided way.
>>>
>>
>> Attached in the plot with x in [-0.1,0.1] - and it is actually OK, I
>> think the minimum (with x=0) is where it should be, at 0.990...
>>
> I meant  0.990 x 10^-6, as indicated on the label.
>

That's good news, that it's just a matplotlib bug in the labeling of the
y-axis in the default case.

Thanks everyone!


>
> It's a bit  confusing that the y-axis is labelled this way, but the offset
>> of +1 is indicated at the
>> label above.
>>
>> Dima
>>
>>
>>> >
>>>
>> --
> 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/CAAWYfq2qWATF3Jkx_RjvF_BeK1tOD_ge3kUV7eNFtTtm8oK8qg%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/CAEQuuAW6GJUaeJYds-sSJ4qktrid0U5Hn%2ByKdV684MUBWb6z6Q%40mail.gmail.com.


Re: [sage-support] bug in plot?

2024-03-14 Thread David Joyner
On Thu, Mar 14, 2024 at 10:35 AM Dima Pasechnik  wrote:

> It might help seeing your graphs here, too.
>

It is attached, Dima. Note that the correct graph should be
(for all practical purposes) simply the plot of the constant
function 1 for all x.


[image: bug-in-plot-of-rational-function.jpg]


> On Thu, Mar 14, 2024 at 10:04 AM David Joyner  wrote:
>
>> Hi:
>>
>> I'm trying to show my students a plot of
>> a rational function whose graph is basically 1,
>> so I plotted
>> f(x) = (x^2+0.0001)/(x^2+0.000101)
>> However, there is a problem: Note the difference between
>> plot((x^2+0.0001)/(x^2+0.000101), (x,-10,10))
>> (which dips down near x=0) and
>> plot((x^2+0.0001)/(x^2+0.000101), (x,-10,10), ymin = -0.1, ymax = 1.5
>> )
>> (which basically looks like a straight line).
>> Same problem for lists:
>>
>> sage: L = [(x/100, f(x/100)) for x in range(-100, 100)]
>> sage: list_plot(L)  # bug?
>> sage: list_plot(L, ymin=-0.5, ymax=1.5) # good
>>
>> This is using 'SageMath version 10.3.rc1, Release Date: 2024-02-29' on
>> an ubuntu machine. Can anyone tell what is going on here? I'm happy to
>> attached jpgs of the plots I get, if desired.
>>
>> For comparison, it appears that Sympy plots this correctly.
>>
>> - David Joyner
>>
>>
>> --
>> 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/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/sage-support/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAAWYfq1DheVMU-33w7uvSFn1HrtWqrNWT4ciH6W3AtvF-J4_jw%40mail.gmail.com
> <https://groups.google.com/d/msgid/sage-support/CAAWYfq1DheVMU-33w7uvSFn1HrtWqrNWT4ciH6W3AtvF-J4_jw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEQuuAXj-9NV-AWw0BJY7kFVRYQhP-LbAW3ikh%3D88_y6zFQnLA%40mail.gmail.com.


Re: [sage-support] bug in plot?

2024-03-14 Thread David Joyner
On Thu, Mar 14, 2024 at 1:51 PM kcrisman  wrote:

>
>
> On Thursday, March 14, 2024 at 10:35:50 AM UTC-4 dim...@gmail.com wrote:
>
> It might help seeing your graphs here, too.
>
>
> Try this:
>
>
> https://sagecell.sagemath.org/?z=eJxL06jQVLBV0KiIM9I20DMwMDDU1EfiGBiAhXi5fICKojUq9IEiOgppEIampkJafpFChUJmnkJRYl56qoYuWBokFcvLlZNZXBJfkJNfouGjqYAVKCsklabb83IpIynVUajMzcyz1TXQMwUxEytsDfVMNYFK0_PzUwDaYipb=sage=eJyLjgUAARUAuQ==
>
>
That's the list plot I get as well, thanks Karl!
I'm confused why adding the ymin and ymax optional arguments fixes the
problem. They seem like independent behaviors.

Also, I spoke too soon about it working on Sympy. I simply tried the Live
Sympy cell online with the default arguments, where it does work.
However, if you use sympy on the command line, it seems to have the same
sort of bug. Your suggestion below suggests it is an upstream
bug in matplotlib, right?

Notice the label 1e-6 + 1, the offset option for matplotlib.  I'm surprised
> that's showing up here for the first time, I don't recall that showing up
> before, but as we've noted at #34233 there were changes a while back in mpl
> that our code failed to keep up with.
>
> One thing one could try, then, is to add, in addition to the
>
> rcParams['axes.formatter.use_mathtext'] = True
>
> at #34233 is to see whether one of these (or whatever the right syntax is)
> might help:
>
> rcParams['axes.formatter.use_offSet'] = False
> rcParams["axes.formatter.offset_threshold"]
>
>
> On Thu, Mar 14, 2024 at 10:04 AM David Joyner  wrote:
>
> Hi:
>
> I'm trying to show my students a plot of
> a rational function whose graph is basically 1,
> so I plotted
> f(x) = (x^2+0.0001)/(x^2+0.000101)
> However, there is a problem: Note the difference between
> plot((x^2+0.0001)/(x^2+0.000101), (x,-10,10))
> (which dips down near x=0) and
> plot((x^2+0.0001)/(x^2+0.000101), (x,-10,10), ymin = -0.1, ymax = 1.5)
> (which basically looks like a straight line).
> Same problem for lists:
>
> sage: L = [(x/100, f(x/100)) for x in range(-100, 100)]
> sage: list_plot(L)  # bug?
> sage: list_plot(L, ymin=-0.5, ymax=1.5) # good
>
> This is using 'SageMath version 10.3.rc1, Release Date: 2024-02-29' on an
> ubuntu machine. Can anyone tell what is going on here? I'm happy to
> attached jpgs of the plots I get, if desired.
>
> For comparison, it appears that Sympy plots this correctly.
>
> - David Joyner
>
>
> --
> 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/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com
> <https://groups.google.com/d/msgid/sage-support/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> --
> 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/6e860869-43e0-48fe-b25d-805edfdf98a7n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/6e860869-43e0-48fe-b25d-805edfdf98a7n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEQuuAVjXjSDX2yNUdnT_W4faSRGKJ9bdRV3ad6trMP2Q3N96g%40mail.gmail.com.


[sage-support] bug in plot?

2024-03-14 Thread David Joyner
Hi:

I'm trying to show my students a plot of
a rational function whose graph is basically 1,
so I plotted
f(x) = (x^2+0.0001)/(x^2+0.000101)
However, there is a problem: Note the difference between
plot((x^2+0.0001)/(x^2+0.000101), (x,-10,10))
(which dips down near x=0) and
plot((x^2+0.0001)/(x^2+0.000101), (x,-10,10), ymin = -0.1, ymax = 1.5)
(which basically looks like a straight line).
Same problem for lists:

sage: L = [(x/100, f(x/100)) for x in range(-100, 100)]
sage: list_plot(L)  # bug?
sage: list_plot(L, ymin=-0.5, ymax=1.5) # good

This is using 'SageMath version 10.3.rc1, Release Date: 2024-02-29' on an
ubuntu machine. Can anyone tell what is going on here? I'm happy to
attached jpgs of the plots I get, if desired.

For comparison, it appears that Sympy plots this correctly.

- David Joyner

-- 
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/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com.


Re: [sage-support] Re: sage 10.3.b2 build problem on OSX 12.7.1

2023-12-16 Thread David Joyner
On Fri, Dec 15, 2023 at 3:04 PM John H Palmieri 
wrote:

> In sage-release, Matthias pointed to missing dependencies for editables,
> fixed in https://github.com/sagemath/sage/pull/36885. Maybe you can just
> do "make flit_core" (to build the missing dependency) and then "make".
>

That works, thanks!!

BTW, on startup I got this:

./sage

┌┐

│ SageMath version 10.3.beta2, Release Date: 2023-12-13  │

│ Using Python 3.11.1. Type "help()" for help.   │

└┘

┏┓

┃ Warning: this is a prerelease version, and it may be unstable. ┃

┗┛

/Users/davidjoyner/sagefiles/sage-10.3.beta2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/prompt_toolkit/application/application.py:988:
DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()

Seems to be working fine though.

Thanks again, John.


>
>
> On Friday, December 15, 2023 at 10:52:10 AM UTC-8 David Joyner wrote:
>
>> Hi:
>>
>> I tried to compile sage and got this:
>>
>> The following package(s) may have failed to build (not necessarily
>>
>> during this run of 'make all-start'):
>>
>>
>> * package: editables-0.5
>>
>>   last build time: Dec 15 10:48
>>
>>   log file:
>> /Users/davidjoyner/sagefiles/sage-10.3.beta2/logs/pkgs/editables-0.5.log
>>
>>
>> The corresponding log is attached.
>>
>>
>> Does anyone have any suggestions on how to fix this?
>>
>> - David
>>
>>
>> --
> 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/ce30cd4c-f431-4eb8-ac35-f4ab5e941e49n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/ce30cd4c-f431-4eb8-ac35-f4ab5e941e49n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEQuuAVnCueYBMNQWXYrcE5kvmYJvfaifKq-nz6UAkOsNUEkyw%40mail.gmail.com.


[sage-support] sage 10.3.b2 build problem on OSX 12.7.1

2023-12-15 Thread David Joyner
Hi:

I tried to compile sage and got this:

The following package(s) may have failed to build (not necessarily

during this run of 'make all-start'):


* package: editables-0.5

  last build time: Dec 15 10:48

  log file:
/Users/davidjoyner/sagefiles/sage-10.3.beta2/logs/pkgs/editables-0.5.log


The corresponding log is attached.


Does anyone have any suggestions on how to fix this?

- David

-- 
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/CAEQuuAU_B4pgA5vmXJSWc-5Kn0ERJXLWa%2BQsBcKoxjyv9JBECg%40mail.gmail.com.


editables-0.5.log
Description: Binary data


[sage-support] Re: [sage-edu] This site can't be reached localhost refused to connect.

2023-12-08 Thread David Joyner
You should email sage-support (cc'd). This list is for teaching with sage.

On Fri, Dec 8, 2023, 2:37 PM Taylors SC  wrote:

> When I would open the Sage app, it would open an Jupyter notebook in a
> Chrome window. Now when I open the Sage app, it opens a browser window, but
> it has the message "This site can't be reached localhost refused to
> connect." My internet connection seems fine otherwise. I've tried using
> Safari and Firefox instead of Chrome, but get the same result. I've also
> reinstalled Sage and made sure I have the latest version.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-edu+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-edu/26d07b10-8962-4104-b6fd-c52a3fd70de4n%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/CAEQuuAVSjTz8aBtVChCGeBCR%3DMeZhef8-9p35-ifecuSigK-8A%40mail.gmail.com.


Re: [sage-support] Can not run make

2023-07-18 Thread David Joyner
together... yes
>> >>> > checking dependency style of gcc... none
>> >>> > checking build system type... x86_64-pc-linux-gnu
>> >>> > checking host system type... x86_64-pc-linux-gnu
>> >>> > checking for ld used by gcc... /usr/bin/ld
>> >>> > checking if the linker (/usr/bin/ld) is GNU ld... yes
>> >>> > checking for shared library run path origin... done
>> >>> > checking for root user... yes
>> >>> > configure: error: You cannot build Sage as root, switch to an
>> unprivileged user. (If building in a container, use
>> --enable-build-as-root.)
>> >>> >
>> >>> > I understand I cant run make as root but to run configure I need to
>> be root. As for the version, on the Sagemath download it said 9.5 for my
>> version of Linux.
>> >>>
>> >>> Sorry, you apparently want to build Sage from source. Then you need
>> to
>> >>> download the sources:
>> >>> https://doc.sagemath.org/html/en/installation/index.html#linux
>> >>> from
>> >>> https://github.com/sagemath/sage/releases
>> >>>
>> >>> Nothing there says you need version 9.5 for anything.
>> >>> We stopped shipping pre-built binary Linux versions of Sage a while
>> >>> ago (the last such were released for Sage 9.4, as far as I know)
>> >>>
>> >>>
>> >>> >
>> >>> > Any help is appreciated
>> >>> >
>> >>> > On Sunday, 16 July 2023 at 19:41:09 UTC+10 David Joyner wrote:
>> >>> >>
>> >>> >> On Sun, Jul 16, 2023 at 5:33 AM Tim M 
>> wrote:
>> >>> >>>
>> >>> >>> Good evening all, I am trying to run make but get the following
>> error.
>> >>> >>> make build/make/Makefile --stop
>> >>> >>> make[1]: Entering directory '/home/macka/Sage/sage-9.5'
>> >>> >>> rm -f config.log
>> >>> >>> mkdir -p logs/pkgs
>> >>> >>> ln -s logs/pkgs/config.log config.log
>> >>> >>>
>> 
>>
>> >>> >>> error: Sage source tree is unconfigured. Please run "./configure"
>> first.
>> >>> >>> note: Type "./configure --help" to see the available
>> configuration options.
>> >>> >>>
>> 
>>
>> >>> >>> make[1]: *** [Makefile:55: build/make/Makefile] Error 1
>> >>> >>> make[1]: Leaving directory '/home/macka/Sage/sage-9.5'
>> >>> >>> make: *** [Makefile:38: base-toolchain] Error 2
>> >>> >>>
>> >>> >>> I have run ./configure many times but nothing changes.
>> >>> >>>
>> >>> >>
>> >>> >>
>> >>> >> What is the output of ./configure?
>> >>> >>
>> >>> >> Note the latest stable version is 10.0, not 9.5.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>> Any help would be much appreciated.
>> >>> >>>
>> >>> >>> --
>> >>> >>> 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/c1bee291-ec60-4dd5-a11b-4c99383ba5e5n%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...@googlegroups.com.
>> >>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/cf56e976-9da2-4a92-a0bf-dd65d51d268fn%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...@googlegroups.com.
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/e5e1320e-98c0-49a2-8a17-19a470b0435dn%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/38e118a8-e697-4f4a-a29a-2be0a79c9bb1n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/38e118a8-e697-4f4a-a29a-2be0a79c9bb1n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEQuuAX_F6_APRUEYGR4MzHinpcCAeJ1py5shXrMQsPAtUUUhw%40mail.gmail.com.


Re: [sage-support] Can not run make

2023-07-17 Thread David Joyner
On Mon, Jul 17, 2023 at 7:16 AM Tim M  wrote:

> Thanks for responding.
>
> The output of ./ configure is as follows:
> checking for a BSD-compatible install... /usr/bin/install -c
>
> ...


> checking for shared library run path origin... done
> checking for root user... yes
> configure: error: You cannot build Sage as root, switch to an unprivileged
> user.  (If building in a container, use --enable-build-as-root.)
>
> I understand I cant run make as root but to run configure I need to be
> root.  As for the version, on the Sagemath download it said 9.5 for my
> version of Linux.
>

What happens when you try to run configure as macka?

What release of linux are you running?


>
> Any help is appreciated
>
> On Sunday, 16 July 2023 at 19:41:09 UTC+10 David Joyner wrote:
>
>> On Sun, Jul 16, 2023 at 5:33 AM Tim M  wrote:
>>
>>> Good evening all, I am trying to run make but get the following error.
>>> make build/make/Makefile --stop
>>> make[1]: Entering directory '/home/macka/Sage/sage-9.5'
>>> rm -f config.log
>>> mkdir -p logs/pkgs
>>> ln -s logs/pkgs/config.log config.log
>>>
>>> 
>>> error: Sage source tree is unconfigured. Please run "./configure" first.
>>> note:  Type "./configure --help" to see the available configuration
>>> options.
>>>
>>> 
>>> make[1]: *** [Makefile:55: build/make/Makefile] Error 1
>>> make[1]: Leaving directory '/home/macka/Sage/sage-9.5'
>>> make: *** [Makefile:38: base-toolchain] Error 2
>>>
>>> I have run ./configure many times but nothing changes.
>>>
>>>
>>
>> What is the output of ./configure?
>>
>> Note the latest stable version is 10.0, not 9.5.
>>
>>
>>
>> Any help would be much appreciated.
>>>
>>> --
>>> 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/c1bee291-ec60-4dd5-a11b-4c99383ba5e5n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/sage-support/c1bee291-ec60-4dd5-a11b-4c99383ba5e5n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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/cf56e976-9da2-4a92-a0bf-dd65d51d268fn%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/cf56e976-9da2-4a92-a0bf-dd65d51d268fn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEQuuAVeM745sLF9RdfM4D7gHc_Mv0iNfOzeVM8kazVPJXyyPA%40mail.gmail.com.


Re: [sage-support] Can not run make

2023-07-16 Thread David Joyner
On Sun, Jul 16, 2023 at 5:33 AM Tim M  wrote:

> Good evening all, I am trying to run make but get the following error.
> make build/make/Makefile --stop
> make[1]: Entering directory '/home/macka/Sage/sage-9.5'
> rm -f config.log
> mkdir -p logs/pkgs
> ln -s logs/pkgs/config.log config.log
>
> 
> error: Sage source tree is unconfigured. Please run "./configure" first.
> note:  Type "./configure --help" to see the available configuration
> options.
>
> 
> make[1]: *** [Makefile:55: build/make/Makefile] Error 1
> make[1]: Leaving directory '/home/macka/Sage/sage-9.5'
> make: *** [Makefile:38: base-toolchain] Error 2
>
> I have run ./configure many times but nothing changes.
>
>

What is the output of ./configure?

Note the latest stable version is 10.0, not 9.5.



Any help would be much appreciated.
>
> --
> 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/c1bee291-ec60-4dd5-a11b-4c99383ba5e5n%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/CAEQuuAWAMvJCMNSjeGPHANNkSYJWG%2BwuhLAPPHZmTrgCH%2BnL%2Bg%40mail.gmail.com.


Re: [sage-support] Cyclic Codes

2023-07-11 Thread David Joyner
On Tue, Jul 11, 2023 at 1:46 PM GUSTAVO TERRA BASTOS 
wrote:

> Firstly I define the finite extension field and the generator polynomial.
> Then, when I try to define/describe the cyclic code using *" Cc =
> codes.CyclicCode(generator_pol = g, length =n)"  *I got the following
> message: *'sage.rings.finite_rings.element_givaro.FiniteField_givaroElement'
> object has no attribute 'degree'. *
>
>
There are examples of how to use the syntax here:
https://doc.sagemath.org/html/en/reference/coding/sage/coding/cyclic_code.html


Best
>
> Em terça-feira, 11 de julho de 2023 às 05:13:49 UTC-3, David Joyner
> escreveu:
>
>> On Tue, Jul 11, 2023 at 4:10 AM GUSTAVO TERRA BASTOS 
>> wrote:
>>
>>> Hi !
>>>
>>> I have been facing problems to describe cyclic codes over finite
>>> extension fields. It is easy to do with GF(p), but I can´t explicit codes
>>> over GF(p^m) (noticing all the mathematical background). Anyone could
>>> provide me an example?
>>>
>>>
>> I'm not sure what you mean by "describe" but the tutorial might help:
>> https://doc.sagemath.org/html/en/thematic_tutorials/coding_theory.html
>>
>>
>>> Best,
>>>
>>> --
>>> 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/56deffc7-4ce2-4b41-bc68-61d9f1a13240n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/sage-support/56deffc7-4ce2-4b41-bc68-61d9f1a13240n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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/def4b40d-0b33-469e-a143-6193c3f16c29n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/def4b40d-0b33-469e-a143-6193c3f16c29n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEQuuAU7sx_kt_NiMZzb9jFKwcS_wshkeYWHYxnpz-_WGDi5Fg%40mail.gmail.com.


Re: [sage-support] Cyclic Codes

2023-07-11 Thread David Joyner
On Tue, Jul 11, 2023 at 4:10 AM GUSTAVO TERRA BASTOS 
wrote:

> Hi !
>
> I have been facing problems to describe cyclic codes over finite extension
> fields. It is easy to do with GF(p), but I can´t explicit codes over
> GF(p^m) (noticing all the mathematical background). Anyone could provide me
> an example?
>
>
I'm not sure what you mean by "describe" but the tutorial might help:
https://doc.sagemath.org/html/en/thematic_tutorials/coding_theory.html


> Best,
>
> --
> 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/56deffc7-4ce2-4b41-bc68-61d9f1a13240n%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/CAEQuuAWcDhyDEg7pD7ysZAawkdR91G57cX4o44fnXnPkUCop5g%40mail.gmail.com.


Re: [sage-support] On the special values of Dirichlet L-function

2023-02-22 Thread David Joyner
On Wed, Feb 22, 2023 at 12:41 AM 小林健一郎  wrote:

> Hi,
> I am calculating some class numbers, using sage math for L-function.
> In the course, I found that the values of L(1, -12) , L(1, -28) and some
> others don't coincide with Cohen' paper, "Sums Involving the Values at
> Negative Integers of L-Functions of Quadratic Characters."
> I guess L(1, -12) might be 1/6*sqrt(3)*pi instead of 1/9*sqrt(3)*pi, for
> example.
>

FYI, SageMath9.8b4 gives
 sage: quadratic_L_function__exact(1, -12)
1/9*sqrt(3)*pi
What version of sage are you using?

I may be confused.
> If anyone would check this for me, it would be a great help.
> Thank you very much in advane.
> Ken Kobayahsi
>
> --
> 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/98e36840-3345-410c-81b3-624ed44a1510n%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/CAEQuuAVAQ-LqhmZcBk%2BEruMSPBbkBGOMOoMgZ8v68d64yO%3Dmog%40mail.gmail.com.


Re: [sage-support] How to efficiently generate all graph isomorphism classes of a given size?

2023-01-31 Thread David Joyner
Since all the graphs you are counting are disconnected,
my guess is that there is a combinatorial argument to
determine their number, say L_n, in terms of the number of connected ones.
Assuming you know the number of connected graphs on
k vertices with n edges (where k<=n+1), call it M_{k,n}, my guess
is you should be able to derive a formula for L_n in terms of
the M_{k,n} without needing a computer.

You may need a computer to tabulate the M_{k,n} but maybe
this is done already for "small" n,k?

On Mon, Jan 30, 2023 at 9:38 PM Shiyue Li  wrote:
>
> Hi all,
>
> I am hoping to generate a list of all graph isomorphism classes of a given 
> size. The current code that I have first generate all the graphs on 2n, and 
> then take all the isomorphism class representatives of size n. But the first 
> step of generating all graphs on 2n vertices can take a really long time and 
> huge amount of memory (run 10 days on my university's research computing 
> cloud) and crashes.
>
> See the following for my code:
>
> def iso_graphs(n):
> '''returns all isomorphism classes of simple graphs on n edges on 2*n 
> vertices'''
> L = list(graphs(2 * n, loops=False, size=n)) print("Do we ever reach this 
> point?")
> L = [G.canonical_label().copy(immutable=True) for G in L if G.size() == n]
> return L
>
> I wonder if what is a correct and efficient way of doing it.
>
> 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/0acb6537-3fe9-42dc-ab1b-c5c79dd5fb5cn%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/CAEQuuAX8ApuYCD6Jxp3L3E8YsTNqjd%2BBCZU%3DW-b%3Dx%2BL0110tgA%40mail.gmail.com.


Re: [sage-support] evaluation of polynomials mod 8

2022-09-27 Thread David Joyner
On Tue, Sep 27, 2022 at 4:46 AM John Cremona  wrote:
>
> Am I doing something stupid here, or is this a bug?
>
> sage: R = Integers(8)
> sage: RXY. = R[]
> sage: F = X^3-X^2*Y+X*Y^2+Y^3
> sage: F([4,2])
> 6
> sage: 4^3-4^2*2+4*2^2+2^3
> 56
> sage: (4^3-4^2*2+4*2^2+2^3) % 8
> 0
>

Even after coercion it doesn't evaluate in ZZ/8ZZ:

sage: ZZ8 = IntegerModRing(8)
sage: R. = PolynomialRing(ZZ8, "x,y")
sage: f = x^3-x^2*y+x*y^2+y^3
sage: x0 = ZZ8(4)
sage: y0 = ZZ8(2)
sage: x0^3-x0^2*y0+x0*y0^2+y0^3
0
sage: f(x0,y0)
6
sage: f(4,2)
6

>
> Why does F not evaluate to 0 mod 8 at X=4, Y=2? Rather obviously, each
> of the terms in F(4,2) is 0 mod 8.
>
> John
>
> --
> 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/CAD0p0K5hXexw5J20gstKUOXxzWdP2a2OTRbKmUtAyG41ySSR-A%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/CAEQuuAWnh%3Dt97OQDgEx39TMyeYu7UYsih3JmN%2B2cSHSiuCGH5Q%40mail.gmail.com.


Re: [sage-support] Krawtchouk Polynomials

2022-06-16 Thread David Joyner
On Thu, Jun 16, 2022 at 8:03 AM Syedafariha Bukhari
 wrote:
>
> Dear Representative,
> I am having trouble for Krawtchouk Polynomials my jupyter notebook is giving 
> error that Krawtchouk is not defined. why it is so?
>

So we can better help, can you please give an example of the syntax you tried?

I'm no expert on those polynomials, nor on the jupyter notebook, but
when I followed
https://doc.sagemath.org/html/en/reference/coding/sage/coding/delsarte_bounds.html
on the command line, I got this output:

sage: codes.bounds.krawtchouk(24,2,5,x)
-4/15*(x - 1)*(x - 2)*(x - 3)*(x - 4)*x + 40/3*(x - 1)*(x - 2)*(x -
3)*x - 280*(x - 1)*(x - 2)*x + 3080*(x - 1)*x - 17710*x + 42504

Does that work for you?

> --
> 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/8e8c9cc3-e088-4969-b036-38d04a0eb282n%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/CAEQuuAXW6spjxqcR_emVXxr9Pjc%2BFzRcv75ZH33rktoCwEi40w%40mail.gmail.com.


Re: [sage-support] Creat fp group using addition relation.

2022-05-25 Thread David Joyner
On Wed, May 25, 2022 at 6:08 AM Hongyi Zhao  wrote:
>
> As commented here [1], the following two methods  can be used to define an 
> Cyclic Group:
>
> ```
> Generators
> If the group operation is multiplication then:
> 
> If the group operation is addition then:
> 
> ```
>
> For the first case, the corresponding code snippet in GAP is as follows:
>
> ```
> gap> f:=FreeGroup("P");;
> gap> g:=f/ParseRelators(f, "P^8" );
> 
> gap> StructureDescription(g);
> "C8"
> ```
>
> But I'm not sure if GAP also supports the second method mentioned above to 
> define a group.
>

While SageMath does use GAP for a lot of group theory, it uses different command
syntax for cyclic groups. In SageMath, you can use both
CyclicPermutationGroup(8)
for the multiplicative cyclic group of order 8, or
IntegerModRing(8)
for the additive version.  Please see the additional examples given in
the tutorials
https://doc.sagemath.org/html/en/thematic_tutorials/group_theory.html
and
https://doc.sagemath.org/html/en/constructions/groups.html


> [1] 
> http://www.euclideanspace.com/maths/discrete/groups/categorise/types/abelian/cyclic/index.htm
>
> Regards,
> HZ
>
> --
> 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/2115f35e-b2a8-406d-87a7-0c7748b636e1n%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/CAEQuuAUV4iNZPTYxSgEVpAhiQxWFdK6NfyeU-kwNfsO2YdsJ0A%40mail.gmail.com.


Re: [sage-support] Matrix logarithm

2022-04-18 Thread David Joyner
On Mon, Apr 18, 2022 at 9:31 AM GUSTAVO TERRA BASTOS
 wrote:
>
> Hi guys.
>
> Given two n x n matrices M, N, we know it is a big problem to find the 
> positive integer "i" such that M^i = N (There are other hypothesis involved). 
> In my particular case, I would like to do the same for 3 x 3 matrices M , N 
> over F_{11^2} (finite field with 121 elements).
>

FYI, some options are mentioned in
https://math.stackexchange.com/questions/3116315/is-there-a-matrix-logarithm-in-sage

> Is it possible to do in a regular PC ?
>
> Best regards!
> Gustavo
>
> --
> 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/d6dfeea7-edac-4805-91e0-5a26ecaefa5dn%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/CAEQuuAWm%2BF45JRR6Hk%2BA_BKno9W%3DbMyK_of8JJBEuFrMUVF%2B-g%40mail.gmail.com.


Re: [sage-support] Solving logarithmic equations

2022-04-09 Thread David Joyner
On Sat, Apr 9, 2022 at 5:18 AM Paolo Robillos  wrote:
>
> Hi,
>
> I am trying to solve the following equation for x, 1+2log(x+1, 4)==2log(x,2)
>
> I entered in the input "(1+2log(x+1, 
> 4)==2log(x,2)).solve(x,algorithm='sympy', domain='all')"
>
> and the Output was "{푥∣푥∈ℂ∧−푥2log(2)+푒(푥+1)1log(2)=0}∖{푥∣푥∈ℂ∧푥2log(2)=0}"
>
> The answer I am looking for is "x = 1+3^(1/2)."
>

You're right, but here is a comment to show SymPy is on the right track:

The first equation is x^(2/log(2)) == e*(x + 1)^(1/log(2)). If you
first raise both sides ro the log(2) power, SageMath can solve it:

sage: solve(x^(2) == e^(log(2))*(x + 1), x)
[x == -sqrt(3) + 1, x == sqrt(3) + 1]


>
> --
> 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/4f7fb72f-b292-4abd-8740-9a5f50491a2an%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/CAEQuuAX_sjh67faTO%2B6oTtJziw3rovkwm9JZqYsmmixPkA57bg%40mail.gmail.com.


Re: [sage-support] Convergence of infinite series

2022-03-29 Thread David Joyner
On Tue, Mar 29, 2022 at 5:33 AM Varun Kumar  wrote:
>
> Someone help me to study the convergence of infinite series by plotting the 
> partial sum.
>

One example is at the end of the calc 2 section of
https://doc.sagemath.org/html/en/prep/Calculus.html

Another example is at the end of
https://doc.sagemath.org/html/en/constructions/calculus.html

Yet another example is this:
sage: L= [sum([1/2^k for k in range(n)]) for n in range(10)]
sage: L
[0, 1, 3/2, 7/4, 15/8, 31/16, 63/32, 127/64, 255/128, 511/256]
sage: list_plot(L)

> --
> 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/5efbde53-e364-47b1-84b5-7fab6cad2e7en%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/CAEQuuAXFWUn0hGE-P9nkZ1ax9ojqAtA7Jyovws0RQOLq60M2aw%40mail.gmail.com.


Re: [sage-support] Re: No module named extern error

2022-02-12 Thread David Joyner
On Sat, Feb 12, 2022 at 5:33 AM slelievre  wrote:
>
> What SageMath versions do you have at home and at work?
> To get the version information, print the Sage banner:
>
> sage: sage.misc.banner.SAGE_BANNER = ''
> sage: banner()
>

A;lso, you can use the version command:

sage: version()
'SageMath version 9.3.rc0, Release Date: 2021-03-23'

> --
> 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/be175aab-15be-4c5e-a671-dd1f3298563dn%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/CAEQuuAWvrvkwZpJY3JzW3XLcbHt8YZoFovyOg2sWM-Uw-QBtFQ%40mail.gmail.com.


Re: [sage-support] Morphisms between free groups.

2022-02-04 Thread David Joyner
On Fri, Feb 4, 2022 at 4:40 AM 'Michel VAN DEN BERGH' via sage-support
 wrote:
>
> Dear all,
>
> I need to do something which I thought would be quite simple. I have free 
> groups
> F, G with generators x1,x2,x3,x4 and x,y respectively and I need to compute 
> the image of an element under the homomorphism F-->G:x1->x, x2->y, x3->x, 
> x4->y.
>
> I could not find anything in the manual about morphisms between free groups. 
> I tried subs, but that does not work since the parents of the elements of F 
> and G are (of course) different.
>
> The workaround I used is to work in the free group H with generators 
> x1,x2,x3,x4,x,y and to use subs. However this is also inconvenient since I 
> need the action of the braid group with 4 strands on F. It does not act on H 
> because of the limitation "#strands=#generators".
>
> So this means I have to use only part of the braid group with 6 strands.
>
> In the end it all works but it is terribly hacky for some which seems to be a 
> very clean thing to do.
>
> I would be grateful for any suggestions.

Michel:

One idea is to check out
https://doc.sagemath.org/html/en/reference/groups/sage/groups/braid.html

Another idea is to download braid-1.1.tar.gz, untar in the pkg
subdirectory and type LoadPackage("braid");
FYI, the pkg subdir is inside sage-9*/local/share/gap
You can find a pdf manual for the braid package at
https://arxiv.org/abs/math/0304376
Currently, the link to braid-1.1.tar.gz at
https://www.gap-system.org/Packages/undep.html
is bad but I have a copy. Just email me privately.

- David

> Michel
>
>
> --
> 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/f7d460d0-390b-455d-ae90-72b105e8e926n%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/CAEQuuAVmSsLxS%2Bi50JNUqrK%3DUm%3DquJaZ2ueNuedAVzr6xKSMzQ%40mail.gmail.com.


Re: [sage-support] How to list all codewords of C ?

2022-01-25 Thread David Joyner
On Tue, Jan 25, 2022 at 9:36 AM GUSTAVO TERRA BASTOS
 wrote:
>
> Hey guys. Hope everyone is fine.
> I am sage beginner, I´d like to know how to describe all the codewords from 
> my linear code C. Best, Gustavo.
>
>

Welcome Gustavo!

Here's an example:

sage: C = codes.HammingCode(GF(2),3); C
[7, 4] Hamming Code over GF(2)
sage: C.list()
[(0, 0, 0, 0, 0, 0, 0),
(1, 0, 0, 0, 0, 1, 1),
(0, 1, 0, 0, 1, 0, 1),
(1, 1, 0, 0, 1, 1, 0),
(0, 0, 1, 0, 1, 1, 0),
(1, 0, 1, 0, 1, 0, 1),
(0, 1, 1, 0, 0, 1, 1),
(1, 1, 1, 0, 0, 0, 0),
(0, 0, 0, 1, 1, 1, 1),
(1, 0, 0, 1, 1, 0, 0),
(0, 1, 0, 1, 0, 1, 0),
(1, 1, 0, 1, 0, 0, 1),
(0, 0, 1, 1, 0, 0, 1),
(1, 0, 1, 1, 0, 1, 0),
(0, 1, 1, 1, 1, 0, 0),
(1, 1, 1, 1, 1, 1, 1)]

More info is here
https://wiki.sagemath.org/Coding_Theory
and here
https://groups.google.com/g/sage-coding-theory

- David

>
> --
> 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/69f3b64e-e0e7-49c0-8daa-224e18603c40n%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/CAEQuuAUCbeb-YXgJ%3Dax81qOrxtD6YZ4KVNJHaHdr4ZKWtkW%2B9A%40mail.gmail.com.


Re: [sage-support] why does this not work? i am trying to create a pattern 1 2 3 4 5 6 which will repeat 6 times. i got this method from my lecturer but it is not working

2021-11-13 Thread David Joyner
It seems rep is an R function. If you are in the sage
notebook, you need to make sure your cell is an R cell.
I don't use the notebook much myself, but this:

d <- rep(1:8,6)
d

returns

[1] 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6
[39] 7 8 1 2 3 4 5 6 7 8

Is that what you want?

Not, if you just want to create repetition of a list on the command line,
you can also try list multiplication like this:

sage: [1,2,3]*4
[1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]

On Sat, Nov 13, 2021 at 11:09 AM Papi London  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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/68d5a0fe-e95a-4ab6-9aba-6cdc9942a673n%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/CAEQuuAUw%2BKgRzeRaNeQ8re8dCw%3DNscm3QDR%3DZ%3DRtgGU3AsENSA%40mail.gmail.com.


Re: [sage-support] UnicodeEncodeError: 'utf-8' codec can't encode characters in position 26-27: surrogates not allowed

2021-09-11 Thread David Joyner
On Sat, Sep 11, 2021 at 6:58 AM zp liu  wrote:
>
> Hola,all!
> When I use the function  solve(),an error occur and I fail to find solutions.
> Needing help!
> CODE:
> solve(x,x)
>

I get

sage: solve(x,x)
[x == 0]
sage: version()
'SageMath version 9.3.rc0, Release Date: 2021-03-23'

> OUT:
> UnicodeEncodeError Traceback (most recent call last) 
>  in  > 1 solve(x,x) 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/symbolic/relation.py 
> in solve(f, *args, **kwds) 1041 1042 if is_Expression(f): # f is a single 
> expression -> 1043 return _solve_expression(f, x, explicit_solutions, 
> multiplicities, to_poly_solve, solution_dict, algorithm, domain) 1044 1045 if 
> not isinstance(f, (list, tuple)): 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/symbolic/relation.py 
> in _solve_expression(f, x, explicit_solutions, multiplicities, to_poly_solve, 
> solution_dict, algorithm, domain) 1280 1281 # from here on, maxima is used 
> for solution -> 1282 m = ex._maxima_() 1283 P = m.parent() 1284 if 
> explicit_solutions: 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx
>  in sage.symbolic.expression.Expression._maxima_ 
> (build/cythonized/sage/symbolic/expression.cpp:7963)() 1020 # Maybe not such 
> a great idea because the "default" interface is another one 1021 from 
> sage.calculus.calculus import maxima -> 1022 return super(Expression, 
> self)._interface_(maxima) 1023 else: 1024 return super(Expression, 
> self)._interface_(session) 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/structure/sage_object.pyx
>  in sage.structure.sage_object.SageObject._interface_ 
> (build/cythonized/sage/structure/sage_object.c:5480)() 678 except (KeyError, 
> ValueError): 679 pass --> 680 nm = I.name() 681 init_func = getattr(self, 
> '_%s_init_' % nm, None) 682 if init_func is not None: 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx 
> in sage.misc.lazy_import.LazyImport.__getattr__ 
> (build/cythonized/sage/misc/lazy_import.c:3876)() 326 True 327 """ --> 328 
> return getattr(self.get_object(), attr) 329 330 # We need to wrap all the 
> slot methods, as they are not forwarded 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx 
> in sage.misc.lazy_import.LazyImport.get_object 
> (build/cythonized/sage/misc/lazy_import.c:2436)() 188 if likely(self._object 
> is not None): 189 return self._object --> 190 return self._get_object() 191 
> 192 cpdef _get_object(self): 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx 
> in sage.misc.lazy_import.LazyImport._get_object 
> (build/cythonized/sage/misc/lazy_import.c:2710)() 221 print(f"Option 
> ``at_startup=True`` for lazy import {self._name} not needed anymore") 222 
> try: --> 223 self._object = getattr(__import__(self._module, {}, {}, 
> [self._name]), self._name) 224 except ImportError as e: 225 if self._feature: 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/interfaces/maxima_lib.py
>  in  88 from sage.symbolic.ring import SR 89 ---> 90 from 
> sage.libs.ecl import EclObject, ecl_eval 91 92 from .maxima_abstract import 
> (MaximaAbstract, MaximaAbstractFunction, 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/libs/ecl.pyx in init 
> sage.libs.ecl (build/cythonized/sage/libs/ecl.c:13899)() 1398 return 
> ecl_wrap(o) 1399 -> 1400 init_ecl() 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/libs/ecl.pyx in 
> sage.libs.ecl.init_ecl (build/cythonized/sage/libs/ecl.c:5084)() 280 (setf 
> (logical-pathname-translations "TMP") 281 '(("**;*.*" "%s/**/*.*"))) --> 282 
> """ % str_to_bytes(str(ECL_TMP 283 284 # We define our own error catching 
> eval, apply and funcall/ 
> /opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/cpython/string.pxd 
> in sage.cpython.string.str_to_bytes 
> (build/cythonized/sage/libs/ecl.c:11601)() 75 if isinstance(s, bytes): 76 
> return s ---> 77 return _str_to_bytes(s, encoding, errors) 
> UnicodeEncodeError: 'utf-8' codec can't encode characters in position 26-27: 
> surrogates not allowed
>
> --
> 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/703453dd-b0ca-4cc5-b741-953f178695a0n%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/CAEQuuAXeUyV7kHDT3z_GzA%2B_ywetmbN3Q1sUMp9%3DXzhiM7LJeQ%40mail.gmail.com.


Re: [sage-support] Other mailing lists

2021-08-23 Thread David Joyner
On Mon, Aug 23, 2021 at 7:13 PM H  wrote:

> I just joined this list a few days ago but also tried to join
> sage-algebra, that list however seems dead. The moderator has after almost
> a week not approved my membership and the last Google group posting seems
> to be from 2018...
>
> Are there any other mailing lists/groups? I should also mention that the
> rss feeds mentioned on the sage site have


Some are listed here:
https://www.sagemath.org/help-groups.html
and others are here
https://www.sagemath.org/development-groups.html

defective links... Is the software dying or am I missing something?
>
> --
> 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/FA4ECD7D-AC30-4982-8B7F-A6BEDBF1BD91%40meddatainc.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/CAEQuuAXEwmZRVM8eJaFyzyf0RfsK0SWA9OHk5MXD4bAjcCBg_A%40mail.gmail.com.


[sage-support] Re: [sage-release] Re: Sage 9.4.rc0 released

2021-08-02 Thread David Joyner
cross posting

On Mon, Aug 2, 2021 at 10:59 AM Raymond Rogers 
wrote:

> Where do I report bugs/inconsistencies/errors (?)
>

sage-support might be a better place for that sort of report.
I'll be happy to approve your post right away.

I am having, at least, inconsistencies with the "copy(manifold)"
> copy(manifold)  doesn't produce an isolated copy;  it leaks backwards
> whereas manifold.copy('m')  works as I expected (for better or worse)
> I tried running a test program (regression testing) in 9.2, and I got
> another error concerning immutability, but at least it didn't produce an
> incorrect result.
> I can copy the test program wherever needed.
>
> On Saturday, July 31, 2021 at 1:17:55 AM UTC-4 Raymond Rogers wrote:
>
>> I have never used pytest but "make test" generated":
>> All tests passed!
>> --
>> Total time for all tests: 15476.6 seconds
>> cpu time: 11245.0 seconds
>> cumulative wall time: 14700.3 seconds
>> --
>> I''ve learned patience :)
>> On Friday, July 30, 2021 at 7:14:24 PM UTC-4 Kenji Iohara wrote:
>>
>>> On my Mac OS 11.5, it compiled perfectly from the first built whereas I
>>> had some problem ptestlong
>>> claiming that I don't have Pytest even if pytest --version  gives
>>> me pytest 6.2.4...
>>>
>>> 2021年7月30日(金) 23:23 Raymond Rogers :
>>>
 I would like to thank the developers!  After numerous attempts, in two
 versions, to compile/use 9.3; 9.4.rco compiled without a problem :)
 When I finally got 9.3 to run, my target program, kerrgeodesic_gw--
 https://github.com/BlackHolePerturbationToolkit/kerrgeodesic_gw, would
 kill  the kernel; or one time posted mpmath errors :)   My system is
 Ubuntu-mate 21.04.  I had a choice, either this "candidate"  or reinstall
 20.04.  Now I can go back to "draining the swamp" (in my mind).

 On Friday, July 30, 2021 at 1:42:45 AM UTC-4 tsc...@ucdavis.edu wrote:

> Thank you Volker for merging many of the tickets.
>
> I would appreciate it if we could have #32006 merged for the next
> release since it contains a number of minor but still very important
> documentation changes (such as changing information about the default 3d
> viewers). If we are also cutting another rc version, I would also like to
> request that #32142 be merged as it was positively reviewed for a 3 weeks
> before it was attempted to be merged with a stupid (and effectively
> trivial) issue preventing the pdf from building. (Admittedly, this was my
> fault for not noticing this earlier, but I implemented this feature based
> on a request I got. So I would understand if this would not be included.)
>
> Best,
> Travis
>
>
> On Friday, July 30, 2021 at 1:59:38 AM UTC+10 emanuel.c...@gmail.com
> wrote:
>
>> On Debian testing running on core i5 + 8 GB RAM, upgrading 9.4.beta5
>> to 9.4.rc0 and running ptestlong gives the same results as reported
>> 
>> for 9.4.beta5 and previous versions.
>>
>> HTH,
>> Le mercredi 28 juillet 2021 à 23:25:22 UTC+2, Volker Braun a écrit :
>>
>>> As always, you can get the latest beta version from the "develop"
>>> git branch. Alternatively, the self-contained source tarball is at
>>> http://www.sagemath.org/download-latest.html
>>>
>>> bd073b49ba (HEAD -> develop, tag: 9.4.rc0, trac/develop) Updated
>>> SageMath version to 9.4.rc0
>>> 5ab9e1634b Trac #32079: Provide early termination via *_found
>>> variable for AC_PATH_PROGS_FEATURE_CHECK
>>> e94bb52df4 Trac #30668: Prepare for autoconf-2.71
>>> 0c03d03357 Trac #31944: Minimal Periodic/Preperiodic Scheme
>>> cf95cf9f5b Trac #32063: Documentation: remove duplicate reference
>>> entry
>>> 230044aa5c Trac #32059: Riemann surfaces documentation
>>> 0de34970b9 Trac #32041: Reduce base field broken for algebraic
>>> closure of finite field
>>> 9f9f430a87 Trac #32018: Error in sage.numerical.gauss_legendre nodes
>>> 1fadb1b652 Trac #31714: Improve some error message for `solve()`
>>> bbd7c64e28 Trac #32235: Fix typos: weather, wether -> whether
>>> 9f81140653 Trac #32194: is_preperiodic error over finite fields
>>> b2f40d91e9 Trac #32166: Add affine_preperiodic_model to dynamical
>>> systems
>>> 238fc08f57 Trac #32115: doctest that pynac series bug has been fixed
>>> 02b40a9335 Trac #32091: Convert cusps to and from PARI
>>> bfdbf9dfaf Trac #32039: Change "and over" to "over" in _repr_() of
>>> (boundary) modular symbols
>>> d8f408c088 Trac #32032: DefaultTermMonoidFactory should be used in
>>> doctests in term_monoid
>>> 1bafd69086 Trac #32025: PolyhedronFace: Fix pickling test
>>> 7b0a822fdc Trac #32016: Fix hurwitz_zeta(0, x) not expanding
>>> 4bdab5e108 Trac #32007: Better labels for 

Re: [sage-support] Graph class method .lovasz_theta is broken

2021-07-19 Thread David Joyner
On Mon, Jul 19, 2021 at 3:39 PM Craig E Larson  wrote:

> Lovasz' theta function used to work. Now it is broken for a wide variety
> of graphs. Here's one example:
>
> g=graphs.CompleteGraph(20)
> g.lovasz_theta()
>
>
Using sage-9.1.rc5 (after installing csdp):

sage: g=graphs.CompleteGraph(20)
sage: g.lovasz_theta()
1.0




> In this case the produced error is:
>
> Error in lines 2-2 Traceback (most recent call last): File
> "/cocalc/lib/python3.8/site-packages/smc_sagews/sage_server.py", line 1230,
> in execute exec( File "", line 1, in  File
> "/ext/sage/sage-9.3/local/lib/python3.9/site-packages/sage/graphs/lovasz_theta.py",
> line 76, in lovasz_theta return float(lines.split()[-1]) ValueError: could
> not convert string to float: b'failed.'
>
> --
> 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/38bbf871-cd24-4168-a185-e60ac09a8c2dn%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/CAEQuuAUe%2B-Ts2bxygKLP50mZiLBt-9cj3%2BPXsQUUOM20WRQUCA%40mail.gmail.com.


Re: [sage-support] how do I do this exercise that asks me given a bilinear form and a subspace determine the root base of the bilinear form restricted to the subspace

2021-07-08 Thread David Joyner
def es(b,W):
: m=dimension(span(A))
: n=W.dimension()
: B=W.basis()
: if transpose(A)!=A:
: print("La matrice deve essere simmetrica")
: return
: else:
: componenti=[var('x'+str(i)) for i in range(1,m+1)]
: w=(SR^m).linear_combination_of_basis(componenti)
: d=[b(B[i],w) for i in range(0,n)]
: return d

is the same thing but a few typos were fixed.


On Thu, Jul 8, 2021 at 5:55 AM Cosimo Romito 
wrote:

> sage:
> def es(b,W):
> m=dimension(span(A))
> n=W.dimension()
> B=W.basis()
> if transpose(A)<>A:
> print("La matrice deve essere simmetrica")
> return
> else:
> componenti=[var('x'+str(i)) for i in range(1,m+1)]
> w=(SR^m).linear_combination_of_basis(componenti)
> d=[b(B[i],w) for i in range(0,n)]
>
> return d
>
>
> --
> 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/fc67971d-aab4-46c6-83b7-ffe125f2fc8fn%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/CAEQuuAVxagoSf8wtONVrt%2BxR81iWgJd0WBV1PutF_WMDXLZg5Q%40mail.gmail.com.


Re: [sage-support] HELP

2021-06-25 Thread David Joyner
On Wed, Jun 23, 2021 at 1:20 PM David Joyner  wrote:

>
>
> On Wed, Jun 23, 2021 at 1:07 PM Cosimo Romito 
> wrote:
>
>> Hi everyone, would anyone be willing to help me with a sage exercise
>> related to the base of a radical of a bilinear form? Thank you.
>> soon I attach the track
>>
>>
>
I used google and found that Gap (which Sagemath includes) does something
this:
https://www.gap-system.org/Manuals/pkg/forms/doc/chap4_mj.html
See the example for RadicalOfForm( f ) near the bottom of that webpage.
However, I'm not sure how you'd do that in SageMath itself, so this doesn't
quite answer
your question. The webpage for the SageMath-Gap interface is here:
https://doc.sagemath.org/html/en/reference/interfaces/sage/interfaces/gap.html
Hope that helps.

Ask sagemath has a similar question:
> https://ask.sagemath.org/question/38132/quadratic-form/
> Hope that helps.
>
> Just FYI, typically this email list doesn't answer homework questions.
> However, if you have
> sagemath code that you think should solve the problem but doesn't, please
> post your code
> and maybe someone can help with that part of it.
>
> --
>> 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/30b64abc-4bf5-4648-8316-b25266faa7e5n%40googlegroups.com
>> <https://groups.google.com/d/msgid/sage-support/30b64abc-4bf5-4648-8316-b25266faa7e5n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>

-- 
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/CAEQuuAW%3D6r6s%2BMVr0th4vMJjAyoRd%3DwZ_MedK6r0FxDYo%3DTgmQ%40mail.gmail.com.


Re: [sage-support] HELP

2021-06-23 Thread David Joyner
On Wed, Jun 23, 2021 at 1:07 PM Cosimo Romito 
wrote:

> Hi everyone, would anyone be willing to help me with a sage exercise
> related to the base of a radical of a bilinear form? Thank you.
> soon I attach the track
>
>
Ask sagemath has a similar question:
https://ask.sagemath.org/question/38132/quadratic-form/
Hope that helps.

Just FYI, typically this email list doesn't answer homework questions.
However, if you have
sagemath code that you think should solve the problem but doesn't, please
post your code
and maybe someone can help with that part of it.

-- 
> 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/30b64abc-4bf5-4648-8316-b25266faa7e5n%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/CAEQuuAVh4C1Eyu8oTJi-UGFhmh%2BBvG6Je%2BDdoQ-ebnQBBVK6Ug%40mail.gmail.com.


Re: [sage-support] Graph class maps

2020-11-08 Thread David Joyner
On Fri, Nov 6, 2020 at 12:57 PM Julian  wrote:

> Hello,
>
> Sage includes the database of graph classes from ISGCI. ISGCI offers a
> Java application to query and render visual maps showing the inclusion
> relationships among the graph classes and the complexity information wrt
> optimization problems.
>
>
Are these visual maps the same sort of thing wikipedia has in the right
hand box near the top of the page for regular graphs?
https://en.wikipedia.org/wiki/Regular_graph


> Does Sage provide the same functionality in terms of rendering the
> inclusion maps of graph classes?
>
>
I'm not aware of this.


> 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/73b5ab59-ac2e-4ed7-a6d2-985dad643d0bn%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/CAEQuuAU0xSnsJAChHQKwkC8T9DGe227E5gfvy9cUQ3uomiz6%3DA%40mail.gmail.com.


Re: [sage-support] Re: problem compiling sage-9.2.rc0 on big sur, xcode 12.01

2020-10-08 Thread David Joyner
On Thu, Oct 8, 2020 at 2:47 PM slelievre  wrote:

> 2020-10-08 17:38:08 UTC, David Joyner:
> >
> > I can log in but don't seem to have permission to add a comment to trac.
>
> Your trac account was missing a name and an email.
> I filled those in, can you try again?
>

That must have worked, thank you! I posted a long comment basically adding
the
info from my posts in this thread.



> --
> 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/5c02a45c-c79a-48c3-aa83-cf4b3620ff1bo%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/5c02a45c-c79a-48c3-aa83-cf4b3620ff1bo%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEQuuAVuPV8M32xUA9vwbZ-SoikVfVLD_LmV-r47GcximpOCdA%40mail.gmail.com.


Re: [sage-support] Re: problem compiling sage-9.2.rc0 on big sur, xcode 12.01

2020-10-08 Thread David Joyner
On Thu, Oct 8, 2020 at 9:48 AM slelievre  wrote:

> 2020-10-07 21:09:18 UTC, John H Palmieri:
> >
> > including details of which homebrew packages you've installed.
>
> To get your installed homebrew packages listed in a file:
> ```
> $ brew list --versions > brew-list-versions.txt
> ```
>

Thank you!



> Or to add the date to the filename:
> ```
> $ brew list --versions > brew-list-versions-`date "+%Y-%m-%d"`.txt
> ```
>
> --
> 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/a1ba0616-77e9-42a8-bbbf-64bb72511cc4o%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/CAEQuuAWeHLEBFfYnuw-3ffs4_YfNECVABXjL8Q-zdEM3y01LOg%40mail.gmail.com.


Re: [sage-support] Re: problem compiling sage-9.2.rc0 on big sur, xcode 12.01

2020-10-07 Thread David Joyner
h module imported OK
>>
>> [python3-3.8.5] hashlib module imported OK
>>
>> [python3-3.8.5] crypt module imported OK
>>
>> [python3-3.8.5] readline module imported OK
>>
>> [python3-3.8.5] socket module imported OK
>>
>> [python3-3.8.5] Traceback (most recent call last):
>>
>> [python3-3.8.5]   File "", line 1, in 
>>
>> [python3-3.8.5] ModuleNotFoundError: No module named 'zlib'
>>
>> [python3-3.8.5] zlib module failed to import
>>
>> [python3-3.8.5] sqlite3 module imported OK
>>
>> [python3-3.8.5] _scproxy module imported OK
>>
>> [python3-3.8.5] Error: One or more modules failed to import.
>>
>> [python3-3.8.5]
>>
>> [python3-3.8.5] real 2m55.196s
>>
>> [python3-3.8.5] user 2m11.283s
>>
>> [python3-3.8.5] sys 0m33.284s
>>
>> [python3-3.8.5]
>> 
>>
>> [python3-3.8.5] Error building package python3-3.8.5
>>
>> [python3-3.8.5]
>> 
>>
>> [python3-3.8.5] Please email sage-devel (
>> http://groups.google.com/group/sage-devel)
>>
>> [python3-3.8.5] explaining the problem and including the log file
>>
>> [python3-3.8.5]
>> /Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/python3-3.8.5.log
>>
>> [python3-3.8.5] Describe your computer, operating system, etc.
>>
>> [python3-3.8.5] If you want to try to fix the problem yourself, *don't*
>> just cd to
>>
>> [python3-3.8.5]
>> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5
>> and type 'make' or whatever is appropriate.
>>
>> [python3-3.8.5] Instead, the following commands setup all environment
>> variables
>>
>> [python3-3.8.5] correctly and load a subshell for you to debug the error:
>>
>> [python3-3.8.5]   (cd
>> '/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5'
>> && '/Users/wdj/sagefiles/sage-9.2.rc0/sage' --buildsh)
>>
>> [python3-3.8.5] When you are done debugging, you can type "exit" to leave
>> the subshell.
>>
>> [python3-3.8.5]
>> ********
>>
>> make[3]: *** [python3-no-deps] Error 1
>>
>> make[2]: ***
>> [/Users/wdj/sagefiles/sage-9.2.rc0/local/var/lib/sage/installed/python3-3.8.5]
>> Error 2
>>
>> make[1]: *** [all-build] Error 2
>>
>>
>> real 3m2.022s
>>
>> user 2m14.632s
>>
>> sys 0m36.375s
>>
>> ***
>>
>> Error building Sage.
>>
>>
>> The following package(s) may have failed to build (not necessarily
>>
>> during this run of 'make all-build'):
>>
>>
>> * package: python3-3.8.5
>>
>>   last build time: Oct 7 10:52
>>
>>   log file:
>> /Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/python3-3.8.5.log
>>
>>   build directory:
>> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5
>>
>>
>> It is safe to delete any log files and build directories, but they
>>
>> contain information that is helpful for debugging build problems.
>>
>> WARNING: If you now run 'make' again, the build directory of the
>>
>> same version of the package will, by default, be deleted. Set the
>>
>> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>>
>>
>> make: *** [all-build] Error 1
>>
>>
>>
>>
>>
>> On Wed, Oct 7, 2020 at 10:39 AM David Joyner  wrote:
>>
>>> Hi:
>>>
>>> The compiler still can't find installed python3:
>>>
>>> wdj@jeeves sage-9.2.rc0 % which python3
>>>
>>> /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
>>>
>>>
>>>
>>> The log python3-3.8.5.log says
>>> "Package 'python3' is currently not installed"
>>>
>>> Here's the tail after running configure then make -k:
>>>
>>> [yasm-1.3.0.p0] Finished installing yasm-1.3.0.p0
>>>
>>> make[3]: Target `all-sage' not remade because of errors.
>>>
>>> make[2]: *** [all-start] Error 2
>>>
>>>
>>> real 940m12.196s
>>>
>>> user 113m42.845s
>>>
>>> sys 15m52.978s
>>>
>>> ***
>>>
>>> Error 

Re: [sage-support] Re: problem compiling sage-9.2.rc0 on big sur, xcode 12.01

2020-10-07 Thread David Joyner
On Wed, Oct 7, 2020 at 1:06 PM John H Palmieri 
wrote:

> Building Sage on Big Sur is being tracked at
> https://trac.sagemath.org/ticket/30651; see also
> https://trac.sagemath.org/ticket/30494. Do you have homebrew installed,
> and if so, which packages? You could try forcing Sage to build its own
> zlib, for example, to try to get Sage's Python to find it.
>
>
Yes, homebrew's installed and I used it to install python3 and readline,
but the compiler can't find either one.

Following your suggestion, I ran sage -f zlib, which seemed to work fine,
but
said openblas wasn't able to compile. I ran sage -f openblas. Here's the
tail of that:

[openblas-0.3.9] gfortran -O2 -m128bit-long-double -Wall -frecursive
-fno-optimize-sibling-calls -m64 -fPIC
-L/Users/wdj/sagefiles/sage-9.2.rc0/local/lib
-Wl,-rpath,/Users/wdj/sagefiles/sage-9.2.rc0/local/lib  -all_load
-headerpad_max_install_names -install_name
"/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/openblas-0.3.9/src/exports/../libopenblas.0.dylib"
-dynamiclib -o ../libopenblas_atomp-r0.3.9.dylib
../libopenblas_atomp-r0.3.9.a -Wl,-exported_symbols_list,osx.def
-L/Users/wdj/sagefiles/sage-9.2.rc0/local/lib
-L/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin19/9.2.0
-L/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin19/9.2.0/../../..
-L/Users/wdj/sagefiles/sage-9.2.rc0/local/lib
-L/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin19/9.2.0
-L/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin19/9.2.0/../../..
-lgfortran -lSystem -lquadmath -lm -lSystem -lgfortran -lSystem -lquadmath
-lm -lSystem -lSystem

[openblas-0.3.9] ld: library not found for -lSystem

[openblas-0.3.9] collect2: error: ld returned 1 exit status

[openblas-0.3.9] make[4]: *** [libopenblas_atomp-r0.3.9.dylib] Error 1

[openblas-0.3.9] make[3]: *** [shared] Error 2

[openblas-0.3.9]


[openblas-0.3.9] Error building openblas-0.3.9

[openblas-0.3.9]


[openblas-0.3.9]

[openblas-0.3.9] real 10m21.321s

[openblas-0.3.9] user 55m3.304s

[openblas-0.3.9] sys 14m23.198s

[openblas-0.3.9]


[openblas-0.3.9] Error installing package openblas-0.3.9

[openblas-0.3.9]


[openblas-0.3.9] Please email sage-devel (
http://groups.google.com/group/sage-devel)

[openblas-0.3.9] explaining the problem and including the log file

[openblas-0.3.9]
/Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/openblas-0.3.9.log

[openblas-0.3.9] Describe your computer, operating system, etc.

[openblas-0.3.9] If you want to try to fix the problem yourself, *don't*
just cd to

[openblas-0.3.9]
/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/openblas-0.3.9
and type 'make' or whatever is appropriate.

[openblas-0.3.9] Instead, the following commands setup all environment
variables

[openblas-0.3.9] correctly and load a subshell for you to debug the error:

[openblas-0.3.9]   (cd
'/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/openblas-0.3.9'
&& '/Users/wdj/sagefiles/sage-9.2.rc0/sage' --buildsh)

[openblas-0.3.9] When you are done debugging, you can type "exit" to leave
the subshell.

[openblas-0.3.9]


make[2]: *** [openblas-no-deps] Error 1

make[1]: ***
[/Users/wdj/sagefiles/sage-9.2.rc0/local/var/lib/sage/installed/openblas-0.3.9]
Error 2


real 10m32.344s

user 55m7.812s

sys 14m30.548s

***

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make openblas'):


* package: openblas-0.3.9

  last build time: Oct 7 14:38

  log file:
/Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/openblas-0.3.9.log

  build directory:
/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/openblas-0.3.9


It is safe to delete any log files and build directories, but they

contain information that is helpful for debugging build problems.

WARNING: If you now run 'make' again, the build directory of the

same version of the package will, by default, be deleted. Set the

environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.


make: *** [openblas] Error 1


Hope this helps.



> On Wednesday, October 7, 2020 at 7:39:59 AM UTC-7, David Joyner wrote:
>>
>> Hi:
>>
>> The compiler still can't find installed python3:
>>
>> wdj@jeeves sage-9.2.rc0 % which python3
>>
>> /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
>>
>>
>>
>> The log python3-3.8.5.log says
>> "Package 'python3' is currently not installed"
>>

[sage-support] Re: problem compiling sage-9.2.rc0 on big sur, xcode 12.01

2020-10-07 Thread David Joyner
 for you to debug the error:

[python3-3.8.5]   (cd
'/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5'
&& '/Users/wdj/sagefiles/sage-9.2.rc0/sage' --buildsh)

[python3-3.8.5] When you are done debugging, you can type "exit" to leave
the subshell.

[python3-3.8.5]


make[3]: *** [python3-no-deps] Error 1

make[2]: ***
[/Users/wdj/sagefiles/sage-9.2.rc0/local/var/lib/sage/installed/python3-3.8.5]
Error 2

make[1]: *** [all-build] Error 2


real 3m2.022s

user 2m14.632s

sys 0m36.375s

***

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all-build'):


* package: python3-3.8.5

  last build time: Oct 7 10:52

  log file:
/Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/python3-3.8.5.log

  build directory:
/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5


It is safe to delete any log files and build directories, but they

contain information that is helpful for debugging build problems.

WARNING: If you now run 'make' again, the build directory of the

same version of the package will, by default, be deleted. Set the

environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.


make: *** [all-build] Error 1





On Wed, Oct 7, 2020 at 10:39 AM David Joyner  wrote:

> Hi:
>
> The compiler still can't find installed python3:
>
> wdj@jeeves sage-9.2.rc0 % which python3
>
> /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
>
>
>
> The log python3-3.8.5.log says
> "Package 'python3' is currently not installed"
>
> Here's the tail after running configure then make -k:
>
> [yasm-1.3.0.p0] Finished installing yasm-1.3.0.p0
>
> make[3]: Target `all-sage' not remade because of errors.
>
> make[2]: *** [all-start] Error 2
>
>
> real 940m12.196s
>
> user 113m42.845s
>
> sys 15m52.978s
>
> ***
>
> Error building Sage.
>
>
> The following package(s) may have failed to build (not necessarily
>
> during this run of 'make all-start'):
>
>
> * package: python3-3.8.5
>
>   last build time: Oct 6 18:49
>
>   log file:
> /Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/python3-3.8.5.log
>
>   build directory:
> /Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5
>
>
> It is safe to delete any log files and build directories, but they
>
> contain information that is helpful for debugging build problems.
>
> WARNING: If you now run 'make' again, the build directory of the
>
> same version of the package will, by default, be deleted. Set the
>
> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>
>
> make[1]: *** [all-start] Error 1
>
> make: *** [all] Error 2
>
> make: Target `default' not remade because of errors.
>
>
> - David Joyner
>
>
>

-- 
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/CAEQuuAVBLtwLT%2BeyU-x2wfbtW3r-HjfM1x-tHDypLotpjcBz1Q%40mail.gmail.com.


[sage-support] problem compiling sage-9.2.rc0 on big sur, xcode 12.01

2020-10-07 Thread David Joyner
Hi:

The compiler still can't find installed python3:

wdj@jeeves sage-9.2.rc0 % which python3

/Library/Frameworks/Python.framework/Versions/3.7/bin/python3



The log python3-3.8.5.log says
"Package 'python3' is currently not installed"

Here's the tail after running configure then make -k:

[yasm-1.3.0.p0] Finished installing yasm-1.3.0.p0

make[3]: Target `all-sage' not remade because of errors.

make[2]: *** [all-start] Error 2


real 940m12.196s

user 113m42.845s

sys 15m52.978s

***

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all-start'):


* package: python3-3.8.5

  last build time: Oct 6 18:49

  log file:
/Users/wdj/sagefiles/sage-9.2.rc0/logs/pkgs/python3-3.8.5.log

  build directory:
/Users/wdj/sagefiles/sage-9.2.rc0/local/var/tmp/sage/build/python3-3.8.5


It is safe to delete any log files and build directories, but they

contain information that is helpful for debugging build problems.

WARNING: If you now run 'make' again, the build directory of the

same version of the package will, by default, be deleted. Set the

environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.


make[1]: *** [all-start] Error 1

make: *** [all] Error 2

make: Target `default' not remade because of errors.


- David Joyner

-- 
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/CAEQuuAX27rFgXpOGjXLKBVS6ysSJXTpUx0eY4x8ChRiTtEexCQ%40mail.gmail.com.


Re: [sage-support] Can't post on ask.sagemath.org

2020-10-03 Thread David Joyner
On Sat, Oct 3, 2020, 3:51 AM Patrick Collins 
wrote:

> Apologies if this is the wrong group to contact.
>
> I have tried to make two posts that contained a code snippet and some
> questions about the results (i.e. no links or terms that I can imagine
> triggering the spam filter), but every attempt fails with:
>
> "Spam was detected on your post, sorry for if this is a mistake"
>
> Is there anything I can do to unbrick my account?
>

I don't know anything about your ask.sagemath issue, but this is the right
place to post your original sagemath question.


>
> --
> 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/c5a0a03e-ac3e-47f7-9139-57bcc2cd6147n%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/CAEQuuAVePfZrM%3Dmpa6UJ9hSk4-S7JBiC_XLN51oCqTd6cWHGMA%40mail.gmail.com.


Re: [sage-support] compile problem for sage 9.2.b9 on mac 11.0 big sur

2020-09-17 Thread David Joyner
On Thu, Sep 17, 2020 at 8:24 AM Dima Pasechnik  wrote:

> try upgrading to the latest readline (8.0.4), e.g. install as much as
> possible from Homebrew,
> which has this version working.
>
>
Done

wdj@jeeves sage-9.2.beta12 % brew upgrade readline
Warning: You are using macOS 11.0.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.
Warning: readline 8.0.4 already installed
wdj@jeeves sage-9.2.beta12 % which readline
readline not found

Same compiling error:

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):
* package: readline-6.3.008.p0
  last build time: Sep 17 10:10
  log file:
 /Users/wdj/sagefiles/sage-9.2.beta12/logs/pkgs/readline-6.3.008.p0.log
  build directory:
/Users/wdj/sagefiles/sage-9.2.beta12/local/var/tmp/sage/build/readline-6.3.008.p0


Maybe make+configure can't find readline?



> On Thu, Sep 17, 2020 at 1:09 PM David Joyner  wrote:
> >
> >
> >
> > On Thu, Sep 17, 2020 at 6:54 AM Dima Pasechnik 
> wrote:
> >>
> >> in the log you attached the failure is in python3, and it's dated Aug 22
> >>
> >
> > Wrong log! Sorry!
> > The correct one is attached I hope:-)
> >
> >>
> >>
> >> On Thu, Sep 17, 2020 at 11:12 AM David Joyner 
> wrote:
> >> >
> >> >  I downloaded sage 9.2.b12 then ran configure and make using newly
> upgraded Xcode 12.
> >> > Instead of failing at python it fails at readline. The log is
> attached.
> >> >
> >> > On Wed, Sep 2, 2020 at 12:10 PM Matthias Koeppe <
> matthiaskoe...@gmail.com> wrote:
> >> >>
> >> >> I also see build failures of at least some of these packages at
> https://github.com/mkoeppe/sage/runs/1059961873 (using a new GH workflow
> that runs Xcode 12 beta, added in https://trac.sagemath.org/ticket/30487)
> >> >>
> >> >> I have opened https://trac.sagemath.org/ticket/30494 "Meta-ticket:
> Support Xcode 12, macOS 11 Big Sur"
> >> >>
> >> >> On Wednesday, September 2, 2020 at 8:19:37 AM UTC-7, John H Palmieri
> wrote:
> >> >>>
> >> >>> With a system Python and "make -k", the following packages fail:
> >> >>>
> >> >>> gf2x
> >> >>> ecm
> >> >>> symmetrica
> >> >>> rubiks
> >> >>> ecl
> >> >>> scipy
> >> >>>
> >> >>> On Tuesday, September 1, 2020 at 10:29:52 PM UTC-7 Matthias Koeppe
> wrote:
> >> >>>>
> >> >>>> These lines:
> >> >>>>
> >> >>>> configure:17396: checking build system compiler gcc
> >> >>>>
> >> >>>> etc.
> >> >>>> might indicate that the configure script is confused about cross
> compiling to a different architecture.
> >> >>>>
> >> >>>>
> >> >>>> On Tuesday, September 1, 2020 at 9:59:59 PM UTC-7, John H Palmieri
> wrote:
> >> >>>>>
> >> >>>>>
> >> >>>>>
> >> >>>>> On Tuesday, September 1, 2020 at 9:52:37 PM UTC-7 Matthias Koeppe
> wrote:
> >> >>>>>>
> >> >>>>>> On Tuesday, September 1, 2020 at 8:59:14 PM UTC-7, John H
> Palmieri wrote:
> >> >>>>>>>
> >> >>>>>>> If I do install Python 3.7, then gf2x and ecm both fail to
> build. The gf2x log file says "configure: error: Cannot find a build system
> compiler
> >> >>>>>>> ". The ecm log file says "checking if globals are prefixed by
> underscore... configure: error: Test program links neither with nor without
> underscore."
> >> >>>>>>>>>
> >> >>>>>>>>>
> >> >>>>>>
> >> >>>>>> gf2x was just upgraded in https://trac.sagemath.org/ticket/30412
> - merged in 9.2.beta11. Did you test with this beta or an earlier one?
> >> >>>>>
> >> >>>>>
> >> >>>>> I tried with 9.2.beta10, and just now I tried with this new
> version of gf2x. Same error either way. Here is the gf2x config.log

Re: [sage-support] Triple integrals in a specific region of space

2020-09-12 Thread David Joyner
On Sun, Sep 6, 2020 at 5:03 AM Teodoro Coluccio 
wrote:

> Can I perform triple integrals in a region of space I define? I'm trying
> to migrate from mathematica to sage, and in mathematica I could go and
> define a region of space (with various limitations) and then perform the
> integral of a function on it. Here is an explanatory image:
> [image: screen.png]
> Is there a way to easily perform this operation even in sage?
>


1) You have to integrate wrt z first, which I don't know whether Mma would
understand without being told.

sage: integral(integral(integral(x^*2*+*2**y*z, (z, y, (*2*-x-*2**y)/*3*)),
(y, x, (*2*-x)/*2*)), (x, -*1*, *2*))
1681/320

2) Using sympy (in sage, but I used https://live.sympy.org/):

>>> var("x,y,z")
(x, y, z)(x, y, z)
>>> integrate(x*x+2*y*z, (z, y, (2-x-2*y)/3), (y, x, (2-x)/2), (x, -1, 2))
1681/320

3) You can also do this in maxima (also included in sage). See
https://themaximalist.org/tag/triple-integration/
for an example of how to use the syntax.

4) Instead of reposting the same question 3 times , it would be helpful to
others with the same question just
to keep the question in one thread.

5) Is this a homework problem for a math class?



> --
> 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/2f4b4ec1-5661-490a-925d-6d038692bc0dn%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/CAEQuuAVewrVAf-xJbjsp_9dng0BtS_tFx54KtTf0mqyAE3hBBA%40mail.gmail.com.


Re: [sage-support] compile problem for sage 9.2.b9 on mac 11.0 big sur

2020-08-22 Thread David Joyner
On Sat, Aug 22, 2020 at 6:02 PM Dima Pasechnik  wrote:

> On Sat, Aug 22, 2020 at 10:51 PM David Joyner  wrote:
> >
> >
> >
> > On Sat, Aug 22, 2020 at 4:52 PM Dima Pasechnik 
> wrote:
> >>
> >> On Sat, Aug 22, 2020 at 8:28 PM Dima Pasechnik 
> wrote:
> >> >
> >> > note: 'utimensat' has been marked as being introduced in macOS 10.13
> >> > here, but the deployment target is macOS 10.9.0
> >> >
> >> > seems to indicate that one has to properly set MACOS_DEPLOYMENT_TARGET
> >> > (or a suchlike thing) to 10.13 or even bigger.
> >>
> >> indeed, in src/bin/sage-env on has
> >>
> >> MACOSX_DEPLOYMENT_TARGET=10.9
> >>
> >> which is the reason for that error, I guess.
> >
> >
> > Shouldn't it be 11.0?
> >
> > I changed it then tried to recompile but it stopped at the same place.
> > I can't install a system python3 using homebrew since it's broken
> > https://github.com/Homebrew/brew/issues/7803
>
> you can install a binary python3.7 from python.org - this is known to
> be possible to use in Sage on macOS 10.15 and earlier versions.
>
>
I installed both python 3.8.5 (the latest) and when that failed 3.7.9.

The end of the output of configure is this seeming contradictory info:

configure: notice: the following SPKGs did not find equivalent system
packages: brial cbc cddlib cliquer coxeter3 eclib ecm fflas_ffpack flintqs
fplll gf2x gfan givaro glpk gp2c gsl iconv iml lcalc libatomic_ops
libbraiding libsemigroups lrcalc m4ri m4rie nauty ninja_build openblas palp
pandoc pari pari_elldata pari_galdata pari_galpol pari_nftables
pari_seadata pari_seadata_small pcre perl_cpan_polymake_prereq
perl_term_readline_gnu planarity ppl python3 r rw suitesparse symmetrica
sympow tachyon yasm zeromq zn_poly

checking for the package system in use... unknown

wdj@jeeves sage-9.2.beta9 % which python3

/usr/local/bin/python3

wdj@jeeves sage-9.2.beta9 % python3 --version
Python 3.7.9

There isn't a python3 system package but there is?


> >
> >
> >>
> >>
> >> >
> >> > On Sat, Aug 22, 2020 at 8:06 PM David Joyner 
> wrote:
> >> > >
> >> > > Hi:
> >> > >
> >> > > I don't know if this has been discussed yet but
> >> > > I just upgraded to mac os 11.0. I downloaded
> >> > > sage 9.2.b9 and ran make. I got a "you must
> >> > > run ./configure first message, which I did.
> >> > > Then I ran make and the compilation stopped while
> >> > > compiling python 3. The log is attached.
> >> > >
> >> > > - David Joyner
> >> > >
> >> > >
> >> > > --
> >> > > 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/CAEQuuAVjRasvOnj7NKQGfXxjL2g9XPfi8WFXdO-6A3mZ_XedHg%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/CAAWYfq2AU24nTFsL2eq3%3DPYgj5320t2LyQJV%2BRFon%2BhrzLJseA%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/CAEQuuAUnZEypSLGc%3DJu8jfZdkSCB6LN4xCg8%2B9A7Fa%3DTnYAuAQ%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/CAAWYfq2Lkbq%3Dhe3d78RLbAO_rRKQtqm87JxcZ%2BD0UhYUV7R2Nw%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/CAEQuuAWxr0GJKaNmDjpLHe8wcp7Fgng787gHztyMmV6PKNSEYA%40mail.gmail.com.


Re: [sage-support] compile problem for sage 9.2.b9 on mac 11.0 big sur

2020-08-22 Thread David Joyner
On Sat, Aug 22, 2020 at 4:52 PM Dima Pasechnik  wrote:

> On Sat, Aug 22, 2020 at 8:28 PM Dima Pasechnik  wrote:
> >
> > note: 'utimensat' has been marked as being introduced in macOS 10.13
> > here, but the deployment target is macOS 10.9.0
> >
> > seems to indicate that one has to properly set MACOS_DEPLOYMENT_TARGET
> > (or a suchlike thing) to 10.13 or even bigger.
>
> indeed, in src/bin/sage-env on has
>
> MACOSX_DEPLOYMENT_TARGET=10.9
>
> which is the reason for that error, I guess.
>

Shouldn't it be 11.0?

I changed it then tried to recompile but it stopped at the same place.
I can't install a system python3 using homebrew since it's broken
https://github.com/Homebrew/brew/issues/7803



>
> >
> > On Sat, Aug 22, 2020 at 8:06 PM David Joyner  wrote:
> > >
> > > Hi:
> > >
> > > I don't know if this has been discussed yet but
> > > I just upgraded to mac os 11.0. I downloaded
> > > sage 9.2.b9 and ran make. I got a "you must
> > > run ./configure first message, which I did.
> > > Then I ran make and the compilation stopped while
> > > compiling python 3. The log is attached.
> > >
> > > - David Joyner
> > >
> > >
> > > --
> > > 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/CAEQuuAVjRasvOnj7NKQGfXxjL2g9XPfi8WFXdO-6A3mZ_XedHg%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/CAAWYfq2AU24nTFsL2eq3%3DPYgj5320t2LyQJV%2BRFon%2BhrzLJseA%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/CAEQuuAUnZEypSLGc%3DJu8jfZdkSCB6LN4xCg8%2B9A7Fa%3DTnYAuAQ%40mail.gmail.com.


Re: [sage-support] Re: bug in CirculantGraph(10,[2,4])?

2020-06-29 Thread David Joyner
On Mon, Jun 29, 2020 at 2:04 PM John H Palmieri 
wrote:

> According to wikipedia, graphs.CirculantGraph(n, [j_1, j_2, ...]) is
> connected if and only if gcd(n, j_1, j_2, ...) = 1. In this case, the gcd
> is 2. If Sage's definition is correct, it's defined as having 10 vertices,
> and vertex i is connected to vertices i+2, i-2, i+4, i-4, then even
> vertices will only be connected to other even vertices, so it should have
> two connected components.
>

Thanks! Sorry for the false alarm.


>
> (I'm not a graph theorist, and wikipedia is wikipedia, so take this with a
> grain of salt.)
>
>   John
>
>
> On Monday, June 29, 2020 at 10:25:26 AM UTC-7 wdjo...@gmail.com wrote:
>
>> Hi:
>>
>> In SageMath version 9.1.beta3, I get
>>
>> sage: Gamma1 = graphs.CirculantGraph(*10*,[*2*,*4*])
>>
>> sage: Gamma1.is_connected()
>>
>> False
>>
>>
>> My understanding is that all circulant graphs are connected.
>>
>> Is this a bug?
>>
>> - David
>>
>>
>>
>>
>> --
> 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/f76cc4fa-4406-40ef-bf1b-7b285407f4d0n%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/CAEQuuAWpevbfRaxSuBpZyM5HpQig8B0iVYoF7UR28zKy2%2Bc02w%40mail.gmail.com.


[sage-support] bug in CirculantGraph(10,[2,4])?

2020-06-29 Thread David Joyner
Hi:

In SageMath version 9.1.beta3, I get

sage: Gamma1 = graphs.CirculantGraph(*10*,[*2*,*4*])

sage: Gamma1.is_connected()

False


My understanding is that all circulant graphs are connected.

Is this a bug?

- David

-- 
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/CAEQuuAWHFg_yxQR6T9bsbpwig4FEqKpo4Jt65BOEQYaygfCrCw%40mail.gmail.com.


Re: [sage-support] Re: How do you use SageMath in research, education, ...?

2020-05-26 Thread David Joyner
On Tue, May 26, 2020 at 4:58 PM Matthias Koeppe 
wrote:

> On Saturday, May 23, 2020 at 11:25:56 PM UTC-7, Matthias Koeppe wrote:
>>
>> On Saturday, May 23, 2020 at 12:18:08 PM UTC-7, Ingo Dahn wrote:
>>>
>>> Sounds like an interesting event, what is the intended audience?
>>> Developers? Researchers? Educators?
>>>
>>
>> All of the above. We have added some more information at
>> https://wiki.sagemath.org/days109
>>
>>
>>> Specific times/tracks for each?
>>>
>>
>> Yes, we will announce a detailed program shortly.
>>
>>
>
> There is now a schedule at
> https://researchseminars.org/seminar/SageDays109
>

Are the times listed PST?


> --
> 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/ee65513f-55a2-417e-ad32-cde332c5015c%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/CAEQuuAU4zcMtcGWpm2b7Ke498VWkkfOT9DakER%3D5JXhyg7DHsQ%40mail.gmail.com.


Re: [sage-support] Plotting algebraic curves

2020-03-01 Thread David Joyner
On Sat, Feb 29, 2020 at 5:29 PM Fernando Gouvea  wrote:

> Some years ago in a book review, David Roberts had the idea of plotting an
> algebraic curve using the transformation  (u,v) = (x,y)/(r2 + x2 + y2)1/2,
> which transforms the plane into a circle and makes it easy to visualize the
> projective completion of the curve.
>


> You can see some of his plots at
> https://www.maa.org/press/maa-reviews/rational-algebraic-curves-a-computer-algebra-approach
>
>
These look like 2d parametric plots.
https://doc.sagemath.org/html/en/reference/plotting/sage/plot/plot.html#sage.plot.plot.parametric_plot
To combine two (or more) par. plots on the same axis, just add the
corresponding graphics objects.
There are examples on the pages linked to above.



> I’d love to do this kind of plot for my students. Can anyone offer help on
> how to do it with Sage? (Of course the dream scenario would be to add this
> option to the plot method for curves...)
>
> I’ve been using implicit_plot for most of my examples, which seems to be
> equivalent of using C.plot() when C is a curve.
>
> Thanks,
>
> Fernando
>
>
>
>
>
> --
> ==
> Fernando Q. Gouvea  Editor, MAA
> Reviews
> Dept of Mathematics and Statistics
> http://www.colby.edu/~fqgouvea
> Colby College
> http://www.maa.org/press/maa-reviews
> Mayflower Hill 5836
> Waterville, ME 04901
>
> A training in mathematics is a prerequisite today for work in almost
> any scientific field, but even for those who are not going to become
> scientists, it is essential because, if it is only through speech that
> we can understand what freedom means, only through mathematics
> can we understand what necessity means.
>   -- W. H. Auden
>
>
> --
> 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/CAPON7s8KPbT-cLo_4FHJN-WqoqHi82%3DmgS1HBAD8SJqDxqkFDg%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/CAEQuuAUukezRFvtNBmhb6VPfkT0AjvbbGE55%2BM7xj90ZhLk2Lw%40mail.gmail.com.


[sage-support] Re: [GAP Forum] GAP to MATLAB?

2019-10-16 Thread David Joyner
Ignore my post. It went to the wrong email list. Sorry.

On Wed, Oct 16, 2019 at 8:23 AM David Joyner  wrote:

>
>
> On Wed, Oct 16, 2019, 8:06 AM Iverson, Joseph W [MATH] 
> wrote:
>
>> Dear GAP forum,
>>
>> Does anybody know of a way to efficiently get matrices (say with
>> cyclotomic entries) from GAP to MATLAB? For instance, is there a package to
>> export matrices as .mat files?
>>
>
> Suggested reply:
>
> One way to do this is to use GAP within SageMath, which has both a GAP
> interface and an Octave interface.
>
>
>> I have been getting by with a jerry-rigged solution where I make GAP
>> print a matrix like
>> A:=[[1,0],[0,1]];;
>> to a file "A.m" containing a single string like
>> "A=[1,0;0,1];".
>> Then I have MATLAB read the file as a script. That works fine for small
>> matrices, but for large ones (or for 3-tensors consisting of lots of
>> matrices) it is prohibitively slow, both for GAP to print to the file and
>> for MATLAB to interpret the result.
>>
>> For a sense of scale, at the moment I would like to export 95040 matrices
>> each of size 540x540 to MATLAB, preferably as a 3-tensor so that I can
>> easily iterate through the list. (The matrices are the image of a
>> representation of M12 having degree 540.)
>>
>> Best regards,
>> Joey Iverson
>>
>> Assistant Professor
>> Department of Mathematics
>> Iowa State University
>>
>> ___
>> Forum mailing list
>> fo...@gap-system.org
>> https://mail.gap-system.org/mailman/listinfo/forum
>>
>

-- 
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/CAEQuuAWPMkJaL%2B19YKRXf%2BFg93p%3DgC5CmgF7Ghab%3DwMwtWJX%2Bw%40mail.gmail.com.


[sage-support] Re: [GAP Forum] GAP to MATLAB?

2019-10-16 Thread David Joyner
On Wed, Oct 16, 2019, 8:06 AM Iverson, Joseph W [MATH] 
wrote:

> Dear GAP forum,
>
> Does anybody know of a way to efficiently get matrices (say with
> cyclotomic entries) from GAP to MATLAB? For instance, is there a package to
> export matrices as .mat files?
>

Suggested reply:

One way to do this is to use GAP within SageMath, which has both a GAP
interface and an Octave interface.


> I have been getting by with a jerry-rigged solution where I make GAP print
> a matrix like
> A:=[[1,0],[0,1]];;
> to a file "A.m" containing a single string like
> "A=[1,0;0,1];".
> Then I have MATLAB read the file as a script. That works fine for small
> matrices, but for large ones (or for 3-tensors consisting of lots of
> matrices) it is prohibitively slow, both for GAP to print to the file and
> for MATLAB to interpret the result.
>
> For a sense of scale, at the moment I would like to export 95040 matrices
> each of size 540x540 to MATLAB, preferably as a 3-tensor so that I can
> easily iterate through the list. (The matrices are the image of a
> representation of M12 having degree 540.)
>
> Best regards,
> Joey Iverson
>
> Assistant Professor
> Department of Mathematics
> Iowa State University
>
> ___
> Forum mailing list
> fo...@gap-system.org
> https://mail.gap-system.org/mailman/listinfo/forum
>

-- 
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/CAEQuuAUyZ6L%2BTEfFVJf1oD8ZWJuLZJUpoTU%2BV1cAJSCR2g9Mgg%40mail.gmail.com.


Re: [sage-support] SageMath installation in macOS Catalina

2019-10-09 Thread David Joyner
On Wed, Oct 9, 2019 at 7:42 AM Dima Pasechnik  wrote:

>
>
> On Wed, Oct 9, 2019 at 6:34 AM David Joyner  wrote:
>
>>
>>
>> On Wed, Oct 9, 2019 at 7:14 AM Dima Pasechnik  wrote:
>>
>>> Hi,
>>>
>>> On Wed, Oct 9, 2019 at 6:03 AM George  wrote:
>>>
>>>> Hi David,
>>>>
>>>> Thanks for the update and information.
>>>>
>>>> building from source should still work.
>>> Did you try this ?
>>>
>>
>> I did. It chokes on the gfortran build:
>>
>> ...
>>
>> [gfortran-7.4.0] make[7]: *** [gets-chk.lo] Error 1
>>
>> [gfortran-7.4.0] make[6]: *** [all] Error 2
>>
>> [gfortran-7.4.0] make[5]: *** [all-target-libssp] Error 2
>>
>> [gfortran-7.4.0] make[4]: *** [all] Error 2
>>
>> [gfortran-7.4.0]
>> 
>>
>> [gfortran-7.4.0] Error building gfortran-7.4.0
>>
>> [gfortran-7.4.0]
>> ********
>>
>>
>>
>>
> is there Homebrew for  Catalina?
> Then one can use its gfortran.
>
>
I googled around. Apparently the answer is no
(or not as of a few days ago anyway).


>
>
>>> Dima
>>>
>>>> G
>>>>
>>>> On Wednesday, October 9, 2019 at 1:00:37 PM UTC+2, David Joyner wrote:
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Oct 9, 2019 at 6:45 AM George  wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I upgraded to the new macOS Catalina and SageMath won't install. I
>>>>>> get errors like "python2.7 cannot be opened because the developer cannot 
>>>>>> be
>>>>>> verified" and for numerous other components as well.
>>>>>>
>>>>>> Is anyone having the same problem? Any tips, advice or ideas on what
>>>>>> is going on and how to fix this?
>>>>>>
>>>>>>
>>>>> I can confirm this issue. The problem is also discussed in the thread
>>>>>
>>>>> https://groups.google.com/forum/?utm_medium=email_source=footer#!msg/sage-support/4dUg8mbiDYw/u5o-U9QBCAAJ
>>>>> That's all I know.
>>>>>
>>>>>
>>>>>> Thanks a lot,
>>>>>> G
>>>>>>
>>>>>> --
>>>>>> 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-s...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/sage-support/e69a4235-ec1b-465e-98da-635ed8be1b23%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/sage-support/e69a4235-ec1b-465e-98da-635ed8be1b23%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> 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/1cd586e5-35af-4e39-9322-8e055c144601%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/sage-support/1cd586e5-35af-4e39-9322-8e055c144601%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAAWYfq0ZBO74cNDnkb33ywH7KkGUNci%3DMxXm5Dsoq5ak-mWb9Q%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/sage-support/CAAWYfq0ZBO74cNDnkb33ywH7KkGUNci%3DMxXm5Dsoq5ak-mWb9Q%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-support" group

Re: [sage-support] SageMath installation in macOS Catalina

2019-10-09 Thread David Joyner
On Wed, Oct 9, 2019 at 7:14 AM Dima Pasechnik  wrote:

> Hi,
>
> On Wed, Oct 9, 2019 at 6:03 AM George  wrote:
>
>> Hi David,
>>
>> Thanks for the update and information.
>>
>> building from source should still work.
> Did you try this ?
>

I did. It chokes on the gfortran build:

...

[gfortran-7.4.0] make[7]: *** [gets-chk.lo] Error 1

[gfortran-7.4.0] make[6]: *** [all] Error 2

[gfortran-7.4.0] make[5]: *** [all-target-libssp] Error 2

[gfortran-7.4.0] make[4]: *** [all] Error 2

[gfortran-7.4.0]


[gfortran-7.4.0] Error building gfortran-7.4.0

[gfortran-7.4.0]





>
> Dima
>
>> G
>>
>> On Wednesday, October 9, 2019 at 1:00:37 PM UTC+2, David Joyner wrote:
>>>
>>>
>>>
>>> On Wed, Oct 9, 2019 at 6:45 AM George  wrote:
>>>
>>>> Hi,
>>>>
>>>> I upgraded to the new macOS Catalina and SageMath won't install. I get
>>>> errors like "python2.7 cannot be opened because the developer cannot be
>>>> verified" and for numerous other components as well.
>>>>
>>>> Is anyone having the same problem? Any tips, advice or ideas on what is
>>>> going on and how to fix this?
>>>>
>>>>
>>> I can confirm this issue. The problem is also discussed in the thread
>>>
>>> https://groups.google.com/forum/?utm_medium=email_source=footer#!msg/sage-support/4dUg8mbiDYw/u5o-U9QBCAAJ
>>> That's all I know.
>>>
>>>
>>>> Thanks a lot,
>>>> G
>>>>
>>>> --
>>>> 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-s...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/sage-support/e69a4235-ec1b-465e-98da-635ed8be1b23%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/sage-support/e69a4235-ec1b-465e-98da-635ed8be1b23%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>> 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/1cd586e5-35af-4e39-9322-8e055c144601%40googlegroups.com
>> <https://groups.google.com/d/msgid/sage-support/1cd586e5-35af-4e39-9322-8e055c144601%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAAWYfq0ZBO74cNDnkb33ywH7KkGUNci%3DMxXm5Dsoq5ak-mWb9Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/sage-support/CAAWYfq0ZBO74cNDnkb33ywH7KkGUNci%3DMxXm5Dsoq5ak-mWb9Q%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAEQuuAWOOuPVgzgGdysYwz3oJ%3DxxV%3DNvj-ePKH__CYTe3x0p%2Bg%40mail.gmail.com.


Re: [sage-support] Re: solving a linear system of GF(3) -- strange TypeError

2019-10-09 Thread David Joyner
On Wed, Oct 9, 2019 at 1:33 AM Robert Samal  wrote:

> Sorry, F=GF(3), I made my original example shorter and didn't read it
> properly.
>
> So the full problematic code is
>
> B=matrix(GF(3), 2,2,[1,0,1,0], sparse=True)
> v=vector(GF(3), [1,1])
> B.solve_right(v)
>
>
Yes. I can confirm it works with "sparse=True" removed *or* if GF(3) is
replaced by ZZ.
So there's an easy workaround but maybe the docs or the code has a bug?
Thanks for reporting.

Thanks,
>
> Robert
>
>
> On Tuesday, October 8, 2019 at 5:17:59 PM UTC-7, Robert Samal wrote:
>>
>> I am trying to solve a rather large linear systems of equations of GF(3).
>> As the matrices are sparse, I thought that adding "sparse=True" to the
>> constructor of the matrix could be of help. However, I ran to a strange
>> error message.
>>
>> B=matrix(GF(3), 2,2,[1,0,1,0], sparse=True)
>> v=vector(F, [1,1])
>> B.solve_right(v)
>>
>> The above code yields the following
>>
>> TypeError: Cannot convert sage.matrix.matrix_modn_sparse.Matrix_modn_sparse 
>> to sage.matrix.matrix_integer_sparse.Matrix_integer_sparse
>>
>>
>> I am hesitant to paste the whole error message here, but it ends with 
>> reference to file
>> SageMath/local/lib/python2.7/site-packages/sage/matrix/matrix_modn_sparse.pyx
>>  in
>> sage.matrix.matrix_modn_sparse.Matrix_modn_sparse._solve_matrix_linbox
>> (build/cythonized/sage/matrix/matrix_modn_sparse.cpp:11633).
>>
>> I am using Sage 8.9, but the same issue was on 8.7 as well.
>>
>> Few other observations:
>> -- works as expected for dense matrices -- or for sparse ones over integers
>> -- the same issue occurs whether y is a vector or a matrix
>> -- It behaves the same for systems with no solution.
>>
>> Is there some hidden limitation of sparse matrices over finite fields?
>> I.e., is it a bug or feature? :-)
>> I tried to RTFM, but couldn't find this discussed. The page for sparse 
>> matrices over
>> finite fields does not exactly promise the solve method, but it does not 
>> mention it
>> would not work either. Is it possible to achieve what I want by other means 
>> (in Sage).
>>
>> 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/6ac68e19-7c5a-4be1-ba10-1bac22cddc62%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/CAEQuuAWQYKhtkVme8wHkJTj38QkmfnSJf3_Lhtqj9PxJmq8HcQ%40mail.gmail.com.


Re: [sage-support] SageMath installation in macOS Catalina

2019-10-09 Thread David Joyner
On Wed, Oct 9, 2019 at 6:45 AM George  wrote:

> Hi,
>
> I upgraded to the new macOS Catalina and SageMath won't install. I get
> errors like "python2.7 cannot be opened because the developer cannot be
> verified" and for numerous other components as well.
>
> Is anyone having the same problem? Any tips, advice or ideas on what is
> going on and how to fix this?
>
>
I can confirm this issue. The problem is also discussed in the thread
https://groups.google.com/forum/?utm_medium=email_source=footer#!msg/sage-support/4dUg8mbiDYw/u5o-U9QBCAAJ
That's all I know.


> Thanks a lot,
> G
>
> --
> 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/e69a4235-ec1b-465e-98da-635ed8be1b23%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/CAEQuuAVfhT-JOV7H7TxH7uWuzY2VxGJ6qaEU00PYQeRu%3DOkesA%40mail.gmail.com.


Re: [sage-support] solving a linear system of GF(3) -- strange TypeError

2019-10-08 Thread David Joyner
On Tue, Oct 8, 2019, 8:18 PM Robert Samal  wrote:

> I am trying to solve a rather large linear systems of equations of GF(3).
> As the matrices are sparse, I thought that adding "sparse=True" to the
> constructor of the matrix could be of help. However, I ran to a strange
> error message.
>
> B=matrix(GF(3), 2,2,[1,0,1,0], sparse=True)
> v=vector(F, [1,1])
> B.solve_right(v)
>
> The above code yields the following
>

What is F (in the line defining v)?


TypeError: Cannot convert
sage.matrix.matrix_modn_sparse.Matrix_modn_sparse to
sage.matrix.matrix_integer_sparse.Matrix_integer_sparse
>
>
> I am hesitant to paste the whole error message here, but it ends with 
> reference to file
> SageMath/local/lib/python2.7/site-packages/sage/matrix/matrix_modn_sparse.pyx 
> in
> sage.matrix.matrix_modn_sparse.Matrix_modn_sparse._solve_matrix_linbox
> (build/cythonized/sage/matrix/matrix_modn_sparse.cpp:11633).
>
> I am using Sage 8.9, but the same issue was on 8.7 as well.
>
> Few other observations:
> -- works as expected for dense matrices -- or for sparse ones over integers
> -- the same issue occurs whether y is a vector or a matrix
>
>
-- It behaves the same for systems with no solution.
>
> Is there some hidden limitation of sparse matrices over finite fields?
> I.e., is it a bug or feature? :-)
> I tried to RTFM, but couldn't find this discussed. The page for sparse 
> matrices over
> finite fields does not exactly promise the solve method, but it does not 
> mention it
> would not work either. Is it possible to achieve what I want by other means 
> (in Sage).
>
> 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/e8912161-212e-4e6f-aa69-a7461b2f6c09%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/CAEQuuAXABMowo8zgScxcOrRpZK-7PDasoJjeEVyT_WQkFaxXxg%40mail.gmail.com.


Re: [sage-support] The behavior of empty sums

2019-06-17 Thread David Joyner
On Mon, Jun 17, 2019 at 5:38 AM Peter Luschny 
wrote:

> I don't know what OmegaPolynomial is. However, if you replace it by
>> cyclotomic_polynomial,
>> it seems to work as expected, doesn't it?
>>
>
> No, it does not. You missed the question.
>
>
>>
>> sage: *def* *ib*(m, n): *return* sum(binomial(m*n-*1*,
>> m*k)*cyclotomic_polynomial(m*(k+*1*)) *for* k in (*0.*.n-*1*))
>>
>> sage: ib(*2*,*2*)
>>
>> 3*x^2 + x + 4
>>
>> sage: type(ib(*2*,*2*))
>>
>> > 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>
>>
>> sage: ib(*2*,*2*).list()
>> [4, 1, 3]
>>
>
> Execute
> for n in (0..6): print(ib(2, n).list()
> as indicated.
>
>

 for n in (1..6):
   print(ib(2, n).list())

works fine for me. Again, I don't know what OmegaPoly
is but my guess is that it's not defined when n=0. For example,

 for n in (0..6):
   print(ib(2, n).list())

doesn't work because the cyclotomic_poly isn't
defined at n=0. Are you saying, the error message it spits out,
AttributeError: 'int' object has no attribute 'list',
is misleading?

I guess I'm being dense this morning but I don't understand
why you think there is something wrong with the sum command.


-- 
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/4fc00a73-06c5-42be-9d5b-73bc53fcc683%40googlegroups.com
> 
> .
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAEQuuAUm0p4idq7yEn5Vu%3DLXjHd%3D2f%3DrhaTe%3DqUsWhP1AXsLdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] The behavior of empty sums

2019-06-17 Thread David Joyner
On Mon, Jun 17, 2019 at 5:18 AM Peter Luschny 
wrote:

> Hi,
>
> I think we should be confident that the sum of integers is
> again an integer, the sum of rational numbers a rational number
> and that the sum of polynomials is a polynomial.
>
> With Sage this is not the case.
>
> def ib(m, n): return sum(binomial(m*n-1, m*k)*OmegaPolynomial(m,k) for k
> in (0..n-1))
>
> The terms "binomial(m*n-1, m*k)*OmegaPolynomial(m,k)" are of type
>  'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>
>
> However "for n in (0..6): print(ib(2, n).list())" yields an
> AttributeError: 'int' object has no attribute 'list'.
>
> OK, it is not difficult to work around this.
> But would you agree to call this behavior a bug?
>
>
I don't know what OmegaPolynomial is. However, if you replace it by
cyclotomic_polynomial,
it seems to work as expected, doesn't it?

sage: *def* *ib*(m, n): *return* sum(binomial(m*n-*1*,
m*k)*cyclotomic_polynomial(m*(k+*1*)) *for* k in (*0.*.n-*1*))

sage: ib(*2*,*2*)

3*x^2 + x + 4

sage: type(ib(*2*,*2*))



sage: ib(*2*,*2*).list()
[4, 1, 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/de96a2b1-562c-4c09-9c38-07685a5bff4c%40googlegroups.com
> 
> .
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAEQuuAXLKDTrdLeEciAtehYzXbPyB7hRgxrfUdv7GkgWiAQVeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] installation on OSX Mojave, Sage V. 8.7

2019-05-24 Thread David Joyner
On Fri, May 24, 2019 at 12:03 PM frank wessel  wrote:

> downloaded the sage-8.7-OSX_10.11.6-x86_64.dmg (hopefully the latest)
>


I'm far from an expert on installing but it seems to me that you
tried to install an app compiled for 10.11.6 on a 10.14.5 computer.
Is this correct?
In case that is correct, if I were you, I'd try to pick the version of the
app that matches my OS.
Hope that helps.


> installed the package into Applications/SageMath folder
> set the SAGE_ROOT env variable in /etc/profile
> clicked on the Sage icon (script) in the Applications/SageMath folder to
> install
> got the following error:
>
> RecursionError: maximum recursion depth exceeded during compilation
>
> Error running the script 'relocate-once.py'.
>
> logout
>
> won't run.
> 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 post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/142d64e9-4cd0-480c-a6c2-c1d4b1f727a5%40googlegroups.com
> 
> .
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAEQuuAXbC6qASjOLR25zFohkZuPOSiLoSzRQoGaWaOymb5L8sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Sage Math on Mac

2019-05-04 Thread David Joyner
Type
./sage
at the prompt. This starts sage.

On Sat, May 4, 2019, 8:26 AM Nick Karavas 
wrote:

> The attached file is what I see when I have my terminal opened at this
> point. No matter what command I put in it does not seem to recognize the
> sage commands.
>
> On Sat, May 4, 2019 at 8:24 AM Nick Karavas <
> nick.kara...@mayvilleschools.org> wrote:
>
>> I'm okay until the part where you say that there should be a "sage:"
>> prompt. Is there some kind of code to put into the terminal in order for
>> all of that to actually communicate properly?
>>
>> On Sat, May 4, 2019 at 7:57 AM Dima Pasechnik  wrote:
>>
>>> also, make sure that it's (app).dmg for the right version of MacOS,
>>> 10.14.
>>>
>>> On Sat, May 4, 2019 at 12:48 PM Dima Pasechnik 
>>> wrote:
>>> >
>>> > On Sat, May 4, 2019 at 12:41 PM Nick Karavas
>>> >  wrote:
>>> > >
>>> > > I tried to download the app.dmg file so that I was able to have the
>>> shortcut on my desktop. Is that not the case? I know someone else in my
>>> same class was able to download the program and use it and I'm using the
>>> same process as her but there is something just not allowing my computer to
>>> direct the computer to the online jupyter notebook files.
>>> >
>>> > I don't know what you mean by "online jupyter notebook files".
>>> > Installing Sage would allow you to run Jupyter on local Sage files.
>>> >
>>> > (yes, you run Jupyter in a browser, but you open files on your machine)
>>> >
>>> > The 1st thing to check is to whether Sage has been correctly installed.
>>> > In the app, there is a menu somewhere that allows you to launch Sage
>>> > in the terminal.
>>> > Please check that this works for you, so that you get a terminal
>>> > window with "sage:" prompt,
>>> > and you can compute something like 2+2 there...
>>> >
>>> >
>>> > >
>>> > > On Sat, May 4, 2019 at 7:22 AM Dima Pasechnik 
>>> wrote:
>>> > >>
>>> > >> On Sat, May 4, 2019 at 12:17 PM Nick Karavas
>>> > >>  wrote:
>>> > >> >
>>> > >> > I just bought a brand new MacBook Pro so I’m assuming that it is
>>> the latest version. I am attempting to use the notebook within sage but my
>>> terminal doesn’t seem to open it when I put in commands. Is there a
>>> resource online that is more specific on the step-by-step process to
>>> download the program?
>>> > >>
>>> > >> did you check out
>>> > >> http://doc.sagemath.org/html/en/installation/binary.html#macos ?
>>> > >> (specifically, I meant  "dmg: a compressed image of the binary"
>>> case)
>>> > >>
>>> > >> Installation itself is pretty standard, see e.g.
>>> > >>
>>> https://apple.stackexchange.com/questions/64845/how-do-i-install-applications-from-a-dmg-file
>>> > >>
>>> > >>
>>> > >>
>>> > >> >
>>> > >> > Sent from my iPhone
>>> > >> >
>>> > >> > > On May 4, 2019, at 5:11 AM, Dima Pasechnik 
>>> wrote:
>>> > >> > >
>>> > >> > > Please provide more details about your MacOS version etc. Our
>>> "app"
>>> > >> > > version of Sage on MacOS is outdated,
>>> > >> > > due to lack of developers who know about details of the
>>> platform.
>>> > >> > >
>>> > >> > > E.g. if you have MacOS 10.14 I recommend to use
>>> > >> > > sage-8.6-OSX_10.11.6-x86_64.dmg (from one of the mirrors, e.g.
>>> > >> > > http://mirrors.mit.edu/sage/osx/intel/)
>>> > >> > > install it, and launch Sage from terminal.
>>> > >> > > (./sage -n jupyter)
>>> > >> > >
>>> > >> > > On Sat, May 4, 2019 at 5:53 AM Nick Karavas
>>> > >> > >  wrote:
>>> > >> > >>
>>> > >> > >> Good Evening,
>>> > >> > >>
>>> > >> > >> I am attempting to download the Sage Math program onto my Mac
>>> and I am having difficulty with actually using the program. It seems to
>>> have created a shortcut but will not open anything when I try to click on
>>> it or try to run Jupyter. I am attempting to use the program for a
>>> Cryptography class that I am currently taking for my masters class. If
>>> anyone can please help aid me as I am attempting to use the program, it
>>> would be greatly appreciated. Thank you.
>>> > >> > >>
>>> > >> > >> Cheers,
>>> > >> > >> Nick Karavas
>>> > >> > >>
>>> > >> > >> --
>>> > >> > >> 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
>>> 

Re: [sage-support] Piecewise Function Fails to Evaluate in its Domain

2019-04-03 Thread David Joyner
On Wed, Apr 3, 2019 at 2:47 PM  wrote:

> The simplest example:
>
> f = piecewise([[[-pi-1, -pi/2], 0], [(-pi/2,pi/2), 1], [[pi/2, pi+1], 0]])
> print(f(-pi))
>
>
I'm not sure why it isn't evaluating symbolic numbers like pi, but here's a
work-around:

sage: f = piecewise([((-pi-*1*, -pi/*2*), *0*), ((-pi/*2*,pi/*2*), *1*),
((pi/*2*, pi+*1*), *0*)])

sage: ff = *lambda* x: f(RR(x))

sage: ff(-pi)

0

sage: f(-*3.1415*)
0

which gives the traceback:
>
> TypeError Traceback (most recent call last)
>  in ()
> > 1 f(-pi)
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/symbolic/expression.pyx
>  in sage.symbolic.expression._eval_on_operands.new_f 
> (build/cythonized/sage/symbolic/expression.cpp:66491)()
>   12677 new_args = list(ex._unpack_operands())
>   12678 new_args.extend(args)
> > 12679 return f(ex, *new_args, **kwds)
>   12680 return new_f
>   12681
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/functions/piecewise.py
>  in __call__(self, parameters, variable, value, **kwds)
> 472 if value is not None:
> 473 substitution[variable] = value
> --> 474 return self.subs(substitution)
> 475
> 476 def _fast_float_(self, *args):
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/symbolic/expression.pyx
>  in sage.symbolic.expression.Expression.substitute 
> (build/cythonized/sage/symbolic/expression.cpp:30025)()
>5289 
> smap.insert(make_pair((self.coerce_in(k))._gobj,
>5290   
> (self.coerce_in(v))._gobj))
> -> 5291 res = self._gobj.subs_map(smap, 0)
>5292 return new_Expression_from_GEx(self._parent, res)
>5293
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/functions/piecewise.py
>  in _subs_(self, subs_map, options, parameters, x)
> 226 if hasattr(point, 'pyobject'):
> 227 # unwrap any numeric values
> --> 228 point = point.pyobject()
> 229 else:
> 230 raise ValueError('substituting the piecewise variable 
> must result in real number')
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/symbolic/expression.pyx
>  in sage.symbolic.expression.Expression.pyobject 
> (build/cythonized/sage/symbolic/expression.cpp:6083)()
> 372
> 373 cdef class Expression(CommutativeRingElement):
> --> 374 cpdef object pyobject(self):
> 375 """
> 376 Get the underlying Python object.
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/symbolic/expression.pyx
>  in sage.symbolic.expression.Expression.pyobject 
> (build/cythonized/sage/symbolic/expression.cpp:6009)()
> 428
> 429 if not is_a_numeric(self._gobj):
> --> 430 raise TypeError("self must be a numeric expression")
> 431 return py_object_from_numeric(self._gobj)
> 432
>
> TypeError: self must be a numeric expression
> sage: f(-pi)
> ---
> TypeError Traceback (most recent call last)
>  in ()
> > 1 f(-pi)
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/symbolic/expression.pyx
>  in sage.symbolic.expression._eval_on_operands.new_f 
> (build/cythonized/sage/symbolic/expression.cpp:66491)()
>   12677 new_args = list(ex._unpack_operands())
>   12678 new_args.extend(args)
> > 12679 return f(ex, *new_args, **kwds)
>   12680 return new_f
>   12681
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/functions/piecewise.py
>  in __call__(self, parameters, variable, value, **kwds)
> 472 if value is not None:
> 473 substitution[variable] = value
> --> 474 return self.subs(substitution)
> 475
> 476 def _fast_float_(self, *args):
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/symbolic/expression.pyx
>  in sage.symbolic.expression.Expression.substitute 
> (build/cythonized/sage/symbolic/expression.cpp:30025)()
>5289 
> smap.insert(make_pair((self.coerce_in(k))._gobj,
>5290   
> (self.coerce_in(v))._gobj))
> -> 5291 res = self._gobj.subs_map(smap, 0)
>5292 return new_Expression_from_GEx(self._parent, res)
>5293
>
> /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/functions/piecewise.py
>  in _subs_(self, subs_map, options, parameters, x)
> 226 if hasattr(point, 

Re: [sage-support] Sage options not recognized.

2019-03-29 Thread David Joyner
On Fri, Mar 29, 2019 at 3:47 PM Jose Garcia  wrote:

> Hi All,
>
> I'm trying to install a package to sage math, and I can't get sage to
> recognize specific options.
>
> Ex
>
> $ sage --package fix-checksum conjecturing
>


Did you mean to type "sage -optional" instead?


> sage-run received unknown option: --package
> usage: sage [options]
> Try 'sage -h' for more information.
>
> same for
>
> $ sage -i conjecturing
> sage-run received unknown option: -i
> usage: sage [options]
> Try 'sage -h' for more information.
>
> This is what my sage root directory looks like...
>
> /usr/share/sagemath$ ls
> bincombinatorial_designs  cremonaext installed
> upstream
> build  conway_polynomials ellcurves  graphs  reflexive_polytopes
>
> Any help would be welcome.
>
> --
> 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] primes -- enhancement request

2019-03-12 Thread David Joyner
On Tue, Mar 12, 2019 at 11:12 AM Peter Luschny 
wrote:

> You did not say what command you were using.
>>
>
> Oh, I thought that was clear from the error message: prime_range.
> The function (implementing the factorial) is on GitHub
> 
>  .
>

You need to add the option "pari_isprime":

sage: prime_range(436273291,436273299,algorithm="pari_isprime")
[436273291]



> --
> 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] Weak covers of permutations

2019-03-01 Thread David Joyner
On Fri, Mar 1, 2019 at 4:25 PM Jeremy Martin 
wrote:

> The weak_covers method gives incorrect answers:
>
> sage: for w in Permutations(3):
> : w, w.weak_covers()
> :
> ([1, 2, 3], [])
> ([1, 3, 2], [[1, 2, 3]])
> ([2, 1, 3], [[1, 2, 3]])
> ([2, 3, 1], [[3, 2, 1]])
> ([3, 1, 2], [[3, 2, 1]])
> ([3, 2, 1], [[3, 1, 2], [2, 3, 1]])
>
> The fourth and fifth lines of the output are incorrect.  The correct
> values should be
>
> ([2, 3, 1], [[2, 1, 3]])
> ([3, 1, 2], [[1, 3, 2]])
>
>
Aren't these the same as the fourth and fifth lines of the output ?
Maybe I'm misinterpreting the permutation notation.

Similarly:
>
> sage: for w in Permutations(3):
> : w, w.weak_covers(side='left')
> :
> ([1, 2, 3], [])
> ([1, 3, 2], [[1, 2, 3]])
> ([2, 1, 3], [[1, 2, 3]])
> ([2, 3, 1], [[3, 2, 1]])
> ([3, 1, 2], [[3, 2, 1]])
> ([3, 2, 1], [[2, 3, 1], [3, 1, 2]])
>
> The fourth and fifth lines should be
>
> ([2, 3, 1], [[1, 3, 2]])
> ([3, 1, 2], [[2, 1, 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.


[sage-support] add sage-coding-the...@googlegroups.com ?

2019-01-22 Thread David Joyner
Hi:

Can someone with access to the website please add
sage-coding-the...@googlegroups.com
to http://www.sagemath.org/development-groups.html?

Thanks!
David Joyner

-- 
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] solution of higher order nonlinear boundary value problems

2018-12-27 Thread David Joyner
On Thu, Dec 27, 2018 at 8:36 AM Madhu  wrote:

> How to solve higher order boundary value problems by using sagemath
>

ODEs or PDEs?

I think sympy (included with sage) has more DEs capabilities than
maxima (which is the default solver sage uses).

Check out

https://docs.sympy.org/latest/modules/solvers/ode.html
https://docs.sympy.org/latest/modules/solvers/pde.html#pde-docs


-- 
> 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] please explain this output

2018-11-10 Thread David Joyner
On Sat, Nov 10, 2018 at 10:59 AM Michael Beeson 
wrote:

> def test():
> for b in range(5,6):
> for c in range(b+1,b+2):
> print(b,c,n(c/b))
> print(5,6,n(6/5))
>
> And the output
>
> sage: test()
>
> (5, 6, 1.00)
>
> (5, 6, 1.20)
>
> sage: version()
>
> 'SageMath version 8.0, Release Date: 2017-07-21'
>
>
> And the question:  why are the two lines not identical?
>

My guess is that python 2.7 interprets c/b to be 1, by the sage preparser
interprets 6/5 to be an element of QQ. Just a guess. With Python 3, they
should be the same.



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


[sage-support] Re: Question regarding piecewise.py in Sage

2018-11-05 Thread David Joyner
Romain:
The best way to get an answer is to send your questions to sage-support,
ccd here.
I don't know the answer to your question off the top of my head, but can
you tell me what the "last modified" date is on the piecewise.py module
you're looking at?
David J

On Mon, Nov 5, 2018, 11:47 AM Romain Li  Dear Volker and David,
>
> I'm a student working on a Sage project creating a class of Convex
> functions. I found out about piecewise.py file and it seems really helpful
> for my project. Since this is my first sage project and I am not that
> strong in programming, I hope maybe you could answer my question!
>
> When I created a simple piecewise function, say my_abs = piecewise([((-1,
> 0), -x), ([0, 1], x)], var=x). It seems the EvaluationMethods object got
> constructed first, and then PiecewiseFunction object got constructed. But I
> do not see in the program how when I call piecewise(...), EvaluationMethods
> object need to be created. Could you please elaborate on that?
>
> Also I do not see in the program how PiecewiseFunction object is related
> to EvaluationMethods object, other than the fact that PiecewiseFunction can
> be passed as a parameter into the EvaluationMethod object. Could you please
> point out the connection in the program?
>
> I noticed in the last line that piecewise = PiecewiseFunction().
>
> Looking forward to hearing from you!
>
> Best Regards,
> Romain
>

-- 
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] Clifford algebras

2018-10-31 Thread David Joyner
On Wed, Oct 31, 2018, 5:52 AM deSitter  Hi Sagen,
>
> Has anyone implemented a non-trivial Clifford algebra module? Such a thing
> would be able to generate higher algebras recursively and exhibit 8-fold
> periodicity, as well as being useful for actual calculation.
>

They are implemented in sympy, included with sagemath.


> thanks (on 8.4 as of today)
>
> -drl
>
> --
> 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] group of roots of unity

2018-10-23 Thread David Joyner
On Tue, Oct 23, 2018 at 4:08 AM Daniel Krenn  wrote:

> Is there an algebraic structure for the group of roots of unity in
> SageMath?
> To clearify: I think of something whose elements are all roots of unity
> or all n-th root of unity for a given n and the group operation is
> multiplication.
>

This is discussed in section 4.1.6 of
http://abstract.ups.edu/download/aata-20130816-sage-5.11.pdf
That was written in 2013, so maybe things have changed since then.


>
> Best, Daniel
>
> --
> 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] Abstract Algebra tutorial ?

2018-07-11 Thread David Joyner
On Tue, Jul 10, 2018 at 11:18 PM Pat Browne  wrote:

> Hi folks,
>
> Can anyone recommend a good tutorial for using sage Permutations and
> groups? I am a complete newbie and haven't been able to figure out how to
> do things with symmetry or permutation multiplications. I'm pretty sure
> that sage would be a great help in understanding these things.
>
>
Check out "Applied Discrete Structures" by Doerr and Levasseur:
http://faculty.uml.edu/klevasseur/ads2/
html: http://faculty.uml.edu/klevasseur/ads/
I've taught out of it and it's good for beginners who have some
appreciation for SageMath. For example, check out the sage-cells embedded
in the explanation of gcds:
http://faculty.uml.edu/klevasseur/ads/s-gcds-and-zsubn.html


thanks in advance
> Pat Browne
>
> --
> 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] Apply PSL(2,5) on P1(F5)

2018-06-19 Thread David Joyner
On Tue, Jun 12, 2018 at 5:48 AM riccardoventrella <
riccardoventrell...@gmail.com> wrote:

> Hello,
> I'm having fun with Prof. Joyner Adventures in Group Theory, and I was
> experimenting with the smallest
> non-abelian simple group, i.e. PSL(2,5). Actually, it can be applied to
> the projective line P1 over the finite field F5.
>
> The amazing thing to me is this map actually permutes the projective line
> elements, acting as a automorphism group.
>
> I know how to realise PSL(2,5) in SAGE but I was wondering if there's a
> way to define a projective line over F5 and see
> its elements permuted by PSL(2,5) action in some way.
>
>
Here's an example with GF(8) instead of GF(5):

sage: F = GF(*8*)

sage: P1F = ProjectiveSpace(*1*,F)

sage: P1Flist = P1F.rational_points()

sage: G = PSL(*2*,F)

sage: Gaction = *lambda* x: P1Flist[g(P1Flist.index(x)+*1*)+*1*]

sage: a = P1F.rational_points()[*2*]

sage: Gaction(a)

(1 : 0)

sage: a = P1F.rational_points()[*3*]

sage: Gaction(a)

(z3 + 1 : 1)

This works because G is a subgroup of a symmetric group.



>
> --
> 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] Re: points on a Fermat curve

2018-04-14 Thread David Joyner
On Fri, Apr 13, 2018 at 11:47 AM, slelievre <samuel.lelie...@gmail.com> wrote:
> Fri 2018-04-13 10:56:17 UTC, David Joyner:
>>
>> PS: About 3 years ago, a related question was posted:
>>
>> https://groups.google.com/forum/#!topic/sage-support/s59iDjhu2zU
>>
>> For some reason, the method described there is no longer implemented.
>
> Regarding the example in the discussion you point to,
> a minor change gets it to work: instead of
>
> sage: C.cardinality()
>
> you can use
>
> sage: C.point_set().cardinality()
>
> Illustration below:
>
> Sage version:
>
> $ sage -v
> SageMath version 8.2.rc1, Release Date: 2018-03-31
>
>
> Define the finite field F:
>
> sage: F. = GF(13^2)
> sage: F
> Finite Field in q of size 13^2
>
> The projective plane over F:
>
> sage: P2.<x,y,z> = toric_varieties.P2(base_ring=F)
> sage: P2
> 2-d CPR-Fano toric variety covered by 3 affine patches
>
> The curve (as a scheme):
>
> sage: C = P2.subscheme(x^8 + y^8 + z^8)
> sage: C
> Closed subscheme of 2-d CPR-Fano toric variety covered by 3 affine
> patches defined by:
>   x^8 + y^8 + z^8
>
> Trying to get the cardinality fails for this scheme:
>
> sage: C.cardinality()
> Traceback (most recent call last)
> ...
> AttributeError: 'AlgebraicScheme_subscheme_toric_with_category' object
> has no attribute 'cardinality'
>
> We need to go through the point set:
>
> sage: P = C.point_set()
> sage: P
> Set of rational points of Closed subscheme of 2-d CPR-Fano toric variety
> covered by 3 affine patches defined by:
>   x^8 + y^8 + z^8
>
> Now we can get the cardinality:
>
> sage: c = P.cardinality()
> sage: c
> 512
>

True, but compare these times!

sage: F. = GF(3^7)
sage: P2.<x,y,z> = toric_varieties.P2(base_ring=F)
sage: C = P2.subscheme(x^8 + y^8 + z^8)
sage: time C.point_set().cardinality()
CPU times: user 3h 29min 7s, sys: 18 s, total: 3h 29min 25s
Wall time: 5h 59min 54s
2188
sage:
sage: x,y,z = PolynomialRing(GF(3^7), 3, 'xyz').gens()
sage: C = Curve(z^8 + y^8 + x^8)
sage: time Cpts = C.rational_points(); len(Cpts)
CPU times: user 10.8 s, sys: 197 ms, total: 11 s
Wall time: 10.8 s
sage: len(Cpts)
2188


> --
> 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] points on a Fermat curve

2018-04-13 Thread David Joyner
On Fri, Apr 13, 2018 at 7:26 AM, John Cremona <john.crem...@gmail.com> wrote:
> This looks like a bug to me:
>
> sage: F=GF(3)
> sage: R.<X,Y,Z>=F[]
> sage: C=Curve(X^8+Y^8-Z^8)
> sage: C.count_points(1) # correct count over GF(3^1)
> [4]
> sage: C.count_points(8) # should give counts over GF(3^n) for n=1..8 but it
> crashes
>
> TypeError: F (=[X^8 + Y^8 - Z^8]) must be a list or tuple of polynomials of
> the coordinate ring of A  (=Projective Space of dimension 2 over Finite
> Field in z2 of size 3^2)
>
> -- note that the error message looks suspicious.
>
> Also the more naive
>
> sage: F=GF(3^8)
> sage: R.<X,Y,Z>=F[]
> sage: C=Curve(X^8+Y^8-Z^8)
> sage: C.count_points(1)
> [4696]
>
> works but is so slow it must be doing something very basic such as testing
> every point in the plane (of which there are 3^16+3^8+1...)
>
> John
>

Agreed.

Moreover, according to
http://doc.sagemath.org/html/en/constructions/algebraic_geometry.html,
"The option algorithm="bn uses Sage’s Singular interface and calls the
brnoeth package."
However, when I look at the doc string in C.rational_points? it says the option
algorithm is ignored. Times seem to bear this out:

sage: x,y,z = PolynomialRing(GF(3^7), 3, 'xyz').gens()
sage: C = Curve(z^8 - y^8 - x^8)
sage: time Cpts = C.rational_points()
CPU times: user 10.9 s, sys: 243 ms, total: 11.1 s
Wall time: 10.9 s
sage: time Cpts = C.rational_points(algorithm="bn")
CPU times: user 10.8 s, sys: 182 ms, total: 11 s
Wall time: 10.8 s
sage: x,y,z = PolynomialRing(GF(3^8), 3, 'xyz').gens()
sage: C = Curve(z^8 - y^8 - x^8)
sage: time Cpts = C.rational_points()
CPU times: user 22.8 s, sys: 97.2 ms, total: 22.9 s
Wall time: 22.8 s
sage: time Cpts = C.rational_points(algorithm="bn")
CPU times: user 22.8 s, sys: 97.2 ms, total: 22.9 s
Wall time: 22.9 s


>
> On 13 April 2018 at 11:55, David Joyner <wdjoy...@gmail.com> wrote:
>>
>> Hi:
>>
>> The question below is posted for Gary McGuire, who is not a subscriber
>> to this list:
>>
>> "I would like to know the number of rational points on the (projective)
>> curve
>> x^8+y^8=z^8
>> over the field of order 3^{18}.
>>
>> My question is, can Sage do this calculation, and how?"
>>
>> - David
>>
>> PS: About 3 years ago, a related question was posted:
>> https://groups.google.com/forum/#!topic/sage-support/s59iDjhu2zU
>> For some reason, the method described there is no longer implemented.
>>
>> --
>> 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.

-- 
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] points on a Fermat curve

2018-04-13 Thread David Joyner
Hi:

The question below is posted for Gary McGuire, who is not a subscriber
to this list:

"I would like to know the number of rational points on the (projective) curve
x^8+y^8=z^8
over the field of order 3^{18}.

My question is, can Sage do this calculation, and how?"

- David

PS: About 3 years ago, a related question was posted:
https://groups.google.com/forum/#!topic/sage-support/s59iDjhu2zU
For some reason, the method described there is no longer implemented.

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

2018-04-07 Thread David Joyner
On Sat, Apr 7, 2018 at 8:52 AM, Henri Girard  wrote:

> I made this graph (meaning a fano's plane) but I have the zero outside the
> graph ?
>
> I don't understand why ? someone could explain ?
>

I don't know but

sage: edges = [(1,2), (1,3), (1,4),
: (2,3), (2,4), (2,5), (2, 6),
: (3,4), (3,5), (3,6), (3,7),
: (4,6), (4,7), (5,6), (6,7)]
sage: Gamma = Graph(edges)
sage: Gamma.show()

gives the same graph but without the 0 vertex.

> My adjacency_matrix is 8 but shouldn't be 7 ?
>
> g=Graph(7)
> edges = [(1,2), (1,3), (1,4),
> (2,3), (2,4), (2,5), (2, 6),
> (3,4), (3,5), (3,6), (3,7),
> (4,6), (4,7), (5,6), (6,7)]
> g.add_edge(1,2),g.add_edge(1,3),g.add_edge(1,4),g.add_edge(2,3),
> g.add_edge(2,4),g.add_edge(2,5),g.add_edge(2,6),g.add_edge(3,4),
> g.add_edge(3,5),g.add_edge(3,6),g.add_edge(3,7),g.add_edge(4,6),
> g.add_edge(4,7),g.add_edge(5,6),g.add_edge(6,7)
> g.show()
> g.adjacency_matrix(),g.incidence_matrix()
>
> Best
>
> 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.
>

-- 
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] fano matrix

2018-03-29 Thread David Joyner
On Thu, Mar 29, 2018 at 11:09 AM, Henri Girard <henri.gir...@gmail.com> wrote:
> Very near... Thanks, I would like the circle inside it
>
> https://en.wikipedia.org/wiki/Fano_plane
>
> Do you know why sage choose matroid to make this graphics ?

The Fano plane is really a combinatorial object. See for example
http://buzzard.pugetsound.edu/cs/section-15.html
on how to use Sage to explore it. It just happens to have a nice
picture associated to it, which the developers of the matroid
module implemented.

>
> I just begin and my question might be nonsense.
>
>
>
>
> Le 29/03/2018 à 16:48, David Joyner a écrit :
>>
>> On Thu, Mar 29, 2018 at 9:32 AM, Henri Girard <henri.gir...@gmail.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> I don' manage matroid well, is there no way for doing a fano's graph with
>>> a
>>> matrix ?
>>>
>>> After I could find adjacent and incident matrix apparently in matroid is
>>> not
>>> possible ?
>>
>> The fano matroid is not graphical
>> https://en.wikipedia.org/wiki/Graphic_matroid#Minors_and_duality
>> so it doesn't have an adjacency matrix in the sense of a graph.
>> Here is a graph whose picture looks a bit like the standard image
>> of the Fano matriod:
>>
>> sage: Gamma =
>> Graph([(0,1),(0,2),(1,2),(1,3),(3,4),(1,4),(2,4),(2,5),(4,5)])
>> sage: A = Gamma.adjacency_matrix()
>> sage: A
>> [0 1 1 0 0 0]
>> [1 0 1 1 1 0]
>> [1 1 0 0 1 1]
>> [0 1 0 0 1 0]
>> [0 1 1 1 0 1]
>> [0 0 1 0 1 0]
>>
>> I'm not sure if that is what you are looking for.
>>
>>> Any help welcome
>>>
>>> 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.
>
>
> --
> 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] fano matrix

2018-03-29 Thread David Joyner
On Thu, Mar 29, 2018 at 9:32 AM, Henri Girard  wrote:
> Hi,
>
> I don' manage matroid well, is there no way for doing a fano's graph with a
> matrix ?
>
> After I could find adjacent and incident matrix apparently in matroid is not
> possible ?

The fano matroid is not graphical
https://en.wikipedia.org/wiki/Graphic_matroid#Minors_and_duality
so it doesn't have an adjacency matrix in the sense of a graph.
Here is a graph whose picture looks a bit like the standard image
of the Fano matriod:

sage: Gamma = Graph([(0,1),(0,2),(1,2),(1,3),(3,4),(1,4),(2,4),(2,5),(4,5)])
sage: A = Gamma.adjacency_matrix()
sage: A
[0 1 1 0 0 0]
[1 0 1 1 1 0]
[1 1 0 0 1 1]
[0 1 0 0 1 0]
[0 1 1 1 0 1]
[0 0 1 0 1 0]

I'm not sure if that is what you are looking for.

>
> Any help welcome
>
> 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.

-- 
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] error show(with_picture)

2018-03-27 Thread David Joyner
On Tue, Mar 27, 2018 at 3:54 AM, HG  wrote:
> Hi,
> I am trying this example : Gráfok - 01 -- Sage
> But it's working on his pdf but not in my notebook (sage-8.1)
> I guess it's an old function which is not working anymore ?
> http://doc.sagemath.org/html/en/reference/graphs/sage/graphs/graph_database.html
>
> G = GraphDatabase()
> S = GraphQuery(G, display_cols=['graph6','aut_grp_size'],
> num_vertices=4)
> S.show(with_picture=True)
> Any help to get it working ?

Using the CLI of Sage, I get this:

sage: G = GraphDatabase()
: S = GraphQuery(G, display_cols=['graph6','aut_grp_size'],num_vertices=4)
:

sage: S.show()

Graph6   Aut Grp Size

C?   24
C@   4
CB   2
CF   6
CJ   6
CK   8
CL   2
CN   2
C]   8
C^   4
C~   24

sage: S.show?

Signature:  S.show(max_field_size=20, with_picture=False)
Docstring:
   Displays the results of a query in table format.

   INPUT:
   * "max_field_size" - width of fields in command prompt version
   * "with_picture" - whether or not to display results with a
 picture of the graph (available only in the notebook)





Were you using the notebook?




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

-- 
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] fano's plane

2018-03-24 Thread David Joyner
On Sat, Mar 24, 2018 at 9:02 AM, Henri Girard <henri.gir...@gmail.com>
wrote:

> Thank you I already found it in one of your articles (the best I found by
> the way on web), but it's not a circle I have got ? is half a circle ?
>
> May be I don't understand the real meaning of it ?
>

The circle is regarded as a projective line, so the pictures mean the same
thing.


>
> Le 24/03/2018 à 13:26, David Joyner a écrit :
>
> On Sat, Mar 24, 2018 at 7:22 AM, Henri Girard <henri.gir...@gmail.com> 
> <henri.gir...@gmail.com> wrote:
>
> Hi,
>
> how to draw fano's plane in sagemath graph ?
>
>
> One way is
>
> sage: matroids.named_matroids.Fano().show()
>
>
>
>
>
> --
> 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.
>

-- 
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] fano's plane

2018-03-24 Thread David Joyner
On Sat, Mar 24, 2018 at 7:22 AM, Henri Girard  wrote:
> Hi,
>
> how to draw fano's plane in sagemath graph ?
>

One way is

sage: matroids.named_matroids.Fano().show()




> --
> 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] Is this a bug?

2018-02-26 Thread David Joyner
On Mon, Feb 26, 2018 at 8:52 PM, Juan Luis Varona
 wrote:
> In sagemath 7.5, we can use this code:
>
> t=var('t');
> M=matrix(4,[[0,0,5/4,2],[t,0,0,0],[0,1,0,0],[0,0,1,0]]);
> P=charpoly(M);
> P.substitute(x=1)
>
> Then, we get the correct answer
> -13/4*t + 1
>
> However, the same code gives an error with sagemath 8.2.
>
> A workaround that again gives the correct answer with sagemath 8.2 is the
> following:
>
> t=var('t');
> M=matrix(4,[[0,0,5/4,2],[t,0,0,0],[0,1,0,0],[0,0,1,0]]);
> P=charpoly(M);
> y=var('y')
> P.substitute(x=y).substitute(y=1)
>
> What is happening?
>
> Is this a bug or a strange feature of the "x" obtained from charpoly?
>

This works in 7.6 and on cocalc.com:

sage: PR. = PolynomialRing(QQ, 2, "x,t")
sage: M=matrix(PR,[[0,0,5/4,2],[t,0,0,0],[0,1,0,0],[0,0,1,0]])
sage: P = M.charpoly()
sage: P(1)
-13/4*t + 1



> Thanks in advance!
>
> Juan Luis Varona
>
> --
> 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.


[sage-support] Re: [sage-algebra] Improving the next code

2018-02-25 Thread David Joyner
On Sun, Feb 25, 2018 at 4:11 PM, Juan Grados  wrote:
> How can I improve the time for the next code?. Basically, I want to solve a
> large undetermined binary linear system and then I need to calculate its
> hamming weight.
>
> A = random_matrix(GF(2), 10, 12, density=0.55)
> b = random_vector(GF(2), 10)
> particular_soln = A.solve_right(b, check=False)
> A_right_kernel = A.right_kernel()
> for homogeneous_soln in A_right_kernel:
> v = (particular_soln + homogeneous_soln)
> print len(v.nonzero_positions())
>

You are computing the min wt of a coset of a binary linear code.
I don't know of a fast stand alone function that does this.

Printing slows you down a lot. Just make the list of wts using list
comprehension and find its minimum later.

For real speed, you make want to modify the C code in
GAP's AClosestVectorCombinationsMatFFEVecFFE.



>
> --
> -
> MSc. Juan del Carmen Grados Vásquez
> Laboratório Nacional de Computação Científica
> Tel: +55 21 97633 3228
> (http://www.lncc.br/)
> http://juaninf.blogspot.com
> -
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-algebra" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-algebra+unsubscr...@googlegroups.com.
> 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] Global variable in Boolean function

2018-02-13 Thread David Joyner
On Tue, Feb 13, 2018 at 1:46 AM,   wrote:
> Input:
> B.
> = BooleanPolynomialRing(order='lex')
> l15=b+b
> print "l15:",l15
> def fun():
>print "l15:",l15
>

I don't get this in 7.6. Instead, I get the expected behavior:


sage: 
B.
= BooleanPolynomialRing(order='lex')

: l15=b+b

: print "l15:",l15

: def fun():

:return "l15:",l15

:

l15: 0


> output:
>
> l15: 0
> l15:
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "_sage_input_13.py", line 10, in 
> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8
> -*-\\n" +
> _support_.preparse_worksheet_cell(base64.b64decode("cHJpbnQgImw2MzoiLCBsNjMKS1NBKCk="),globals())+"\\n");
> execfile(os.path.abspath("___code___.py"))
>   File "", line 1, in 
>   File "/tmp/tmprgCX70/___code___.py", line 3, in 
> exec compile(u'fun()
>   File "", line 1, in 
>   File "/tmp/tmpbGAWHq/___code___.py", line 3, in KSA
> print "l15:", l15
> UnboundLocalError: local variable 'l15' referenced before assignment
>
>
> Input:
> B.
> = BooleanPolynomialRing(order='lex')
> l15=b+b
> print "l15:",l15
> def fun():
>
> C.=
> BooleanPolynomialRing(order='lex')
> print "l15:",l15
> output:
> l15: 0
> l15: l15
>
>
> My question is : how can globally i will declare the value of l15?
>
> --
> 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] Plotting with respect to x^2

2018-01-27 Thread David Joyner
On Sat, Jan 27, 2018 at 3:03 PM, saad khalid  wrote:
> Hello! I have a function and I would like to plot it, but instead of the
> "x-axis" scaling by x, I would like have the x-axis scale by x^2. Is this
> possible with the current plot function?

If you want to plot y = f(x) with x-axis scaled by x^2, why can't you
simply plot y = f(sqrt(x)) instead?

>
> 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 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] Piecewise polynomials in general

2018-01-25 Thread David Joyner
On Wed, Jan 24, 2018 at 8:13 PM, Anton Sherwood  wrote:
> Speaking of piecewise functions, does anyone happen to know of a piecewise
> polynomial object for Python?  I tried writing one (based on numpy.poly1d)
> but its integration method seems to have a bug.  It surprises me that I
> haven't found one on the fertile Web.
>

The original class I wrote for sage long long ago was basically for
piecewise polynomials.
I can email the module to you if you want.

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

-- 
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] Error to download Spanish version Sage

2017-10-09 Thread David Joyner
On Mon, Oct 9, 2017 at 9:34 AM, joaquin gh  wrote:
> http://strange1712.kubuntu-es.org/6733/sage-open-source-mathematics-software
>

SageMath binaries should be downloaded from mirrors listed here:
http://www.sagemath.org/download.html
AFAIK, there is no "Spanish version" of Sage. If you have any
problem with those mirrors, please report them here.

We don't maintain the kubuntu-es.org website.
If you want, you can report the 404 error to the kubuntu maintainers.

> Error 404
>
> --
> 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] Boolean Polynomial ring

2017-08-25 Thread David Joyner
On Fri, Aug 25, 2017 at 4:03 PM,   wrote:
> i am new in sage. and i want to define an array of dimension 79 and every
> time i want to save a new value in each array shell i.e. for i in range(79)
> a[i]= any value and also i want define a vector. can you help me out?
>

I'm not such what your exact question is, but I'll try to answer.

Once you have a list L of numbers, say rationals, you can define a
vector using the
syntax

v = vector(QQ,L)

To define a list, you can use a command like

L = [1/(i^2+1) for in range(79)]

More on Python lists can be found here:
https://docs.python.org/2/tutorial/datastructures.html

Hope this answers your question.


> --
> 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] INSTALLATION SAGE

2017-08-22 Thread David Joyner
On Tue, Aug 22, 2017 at 9:08 AM, KULDEEP SARMA
 wrote:
> How sage can be installed in Ubuntu system? I had followed the instructions
> but it says no such file
>

The instructions for decompressing at
http://doc.sagemath.org/html/en/installation/binary.html
might be out of date, as all the files are *.bz2 files.
Instructions for decompressing bz2 files can be found here:
https://wiki.sagemath.org/DownloadAndInstallationGuide




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


[sage-support] Re: [GAP Support] Gap 4.8.7

2017-07-19 Thread David Joyner
On Wed, Jul 19, 2017 at 9:32 PM, Loretha B  wrote:
> I'm new to all of this, so I'm sure I'm missing something.
> Trying to install 4.8.7 and I'm completely lost. Only vids i see on YT are
> for 2.6.
>
> 4.8.7 installed on Windows, but not appearing in Gimp.
>

There is a GAP associated to GIMP, but this is the wrong email list for that.
You might try the email lists linked to at the bottom of this webpage:
https://www.gimp.org


> ** Mrs. Bridges, Instructor*
> *IBO, **Bridge Connections LLC**
>
>
> *"NOTICE – This e-mail message may contain privileged, confidential, or
> sensitive information intended only for the use of the identified
> recipient. If you are not the intended recipient of this e-mail, you are
> hereby notified that any use, dissemination, distribution, or reproduction
> of this e-mail is prohibited. If you have received this e-mail in error,
> please notify the sender immediately, and delete this e-mail and all
> attachments from your computer system."*
> ___
> Support mailing list
> supp...@mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/support

-- 
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] Can i install sage100 + any related retrieve scripts on Red hat linux and on centos.

2017-07-18 Thread David Joyner
On Tue, Jul 18, 2017 at 1:46 PM, Mario cilia attard
 wrote:
>
>
> Can i install sage100 with retrieve database ver 5.4.x + any related
> retrieve scripts on Red hat linux and on centos.  In addition do you have a
> procedure how to install and compile sage on such linux version.  I am still
> a novice and I need to proof that such system can be compiled on Linux
> rather than going for windows operating system
>

I think you have the wrong sage software support list.
Is http://www.sagemath.org/ the software you want to use?

> --
> 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] Re: typo in simplicial complex documentation?

2017-06-12 Thread David Joyner
On Sun, Jun 11, 2017 at 3:20 PM, John H Palmieri <jhpalmier...@gmail.com> wrote:
> On Sunday, June 11, 2017 at 10:13:52 AM UTC-7, David Joyner wrote:
>>
>> On Sun, Jun 11, 2017 at 11:30 AM, John H Palmieri
>> <jhpalm...@gmail.com> wrote:
>> >
>> >
>> > On Saturday, June 10, 2017 at 7:05:49 PM UTC-7, David Joyner wrote:
>> >>
>> >> On Thu, Jun 8, 2017 at 10:49 PM, John H Palmieri <jhpalm...@gmail.com>
>> >> wrote:
>> >> >
>> >> >
>> >> > On Thursday, June 8, 2017 at 5:16:15 PM UTC-7, David Joyner wrote:
>> >> >>
>> >> >> Hi all:
>> >> >>
>> >> >> This is kind of a newbie question, as I'm not an expert on
>> >> >> simplicial
>> >> >> complexes. It's also a minor technical issue on the documentation,
>> >> >> not
>> >> >> the code.
>> >> >>
>> >> >> I'm trying to debug some code of mine and, on reading the
>> >> >> documentation for chain_complex on
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://doc.sagemath.org/html/en/reference/homology/sage/homology/simplicial_complex.html,
>> >> >> found this: "The rows and columns of the boundary matrices are
>> >> >> indexed
>> >> >> by the lists given by the n_cells() method, which by default are
>> >> >> sorted." On the other hand, the documentation for n_cells has this
>> >> >> statement: "Sort the list if the argument sort is True. If sort is
>> >> >> None (the default), then sort depending on the value of the
>> >> >> sort_facets parameter (from  the initialization of the simplicial
>> >> >> complex)." However, the sort_facets parameter (unless I'm mistaken)
>> >> >> does not sort the individual faces but rather sorts the vertices in
>> >> >> each facet.
>> >> >
>> >> >
>> >> > The documentation means that if "sort_facets" was True originally,
>> >> > then
>> >> > n_cells will also sort its result before returning it. ("then sort
>> >> > depending
>> >> > on the value of the sort_facets parameter": so if sort_facets was
>> >> > True,
>> >> > then
>> >> > n_cells should also sort. It doesn't mean "sort using the effect of
>> >> > the
>> >> > sort_facets parameter", but sort depending on its value, which is
>> >> > True
>> >> > or
>> >> > False. This could be made clearer, I guess.)
>> >> >
>> >>
>> >>
>> >> To be clear, I am getting different computations using the same sage
>> >> computations on different machines. One (recent, but used, linux)
>> >> machine consistently gives ones result, the other gives (randomly?)
>> >> several others. The "other" (a 8 yr old, a mac with possibly memory
>> >> issues) machine gives different results. I'm not saying your methods
>> >> are machine dependent, just that *for me* they seem to be.
>> >>
>> >> To be clear, these "inconsistent" computations take at least one day.
>> >> The "toy" (consistent) examples are okay.
>> >
>> >
>> > That's strange. Are you just getting different orders when you sort, or
>> > different answers for homology? Are the answers consistent on each
>> > machine?
>> > What type of object are the vertices?
>> >
>>
>> The example which gives strange output is the bipyramid complex:
>>
>> S = SimplicialComplex(maximal_faces=[(1,2,3), (1,2,4),\
>>   (1,2,5), (1,3,4),(1,3,5),(2,3,4),(2,3,5)])
>>
>> which has 9 1-faces. I'm computing the list of all stable configurations,
>> namely vectors c in ZZ^9 having non-negative components which cannot
>> fire (in the sense of chip-firing - see Duval, Klivans, Martin
>> https://arxiv.org/pdf/1101.3981.pdf) with respect to the 1-dimls
>> simplicial
>> spanning tree given by the 1-faces (1, 4), (1,5), (2,5), (3,4). On an old
>> mac running OS 10.11.6 and sage 7.2.b0, the output is usually 268125,
>> after about a day, but once I also got 137500. On a linux machine running
>> ubuntu and sage 7.3, I always get 395625. These computations use
>> the S.chain_complex.differential method t

Re: [sage-support] Re: typo in simplicial complex documentation?

2017-06-11 Thread David Joyner
On Sun, Jun 11, 2017 at 11:30 AM, John H Palmieri
<jhpalmier...@gmail.com> wrote:
>
>
> On Saturday, June 10, 2017 at 7:05:49 PM UTC-7, David Joyner wrote:
>>
>> On Thu, Jun 8, 2017 at 10:49 PM, John H Palmieri <jhpalm...@gmail.com>
>> wrote:
>> >
>> >
>> > On Thursday, June 8, 2017 at 5:16:15 PM UTC-7, David Joyner wrote:
>> >>
>> >> Hi all:
>> >>
>> >> This is kind of a newbie question, as I'm not an expert on simplicial
>> >> complexes. It's also a minor technical issue on the documentation, not
>> >> the code.
>> >>
>> >> I'm trying to debug some code of mine and, on reading the
>> >> documentation for chain_complex on
>> >>
>> >>
>> >> http://doc.sagemath.org/html/en/reference/homology/sage/homology/simplicial_complex.html,
>> >> found this: "The rows and columns of the boundary matrices are indexed
>> >> by the lists given by the n_cells() method, which by default are
>> >> sorted." On the other hand, the documentation for n_cells has this
>> >> statement: "Sort the list if the argument sort is True. If sort is
>> >> None (the default), then sort depending on the value of the
>> >> sort_facets parameter (from  the initialization of the simplicial
>> >> complex)." However, the sort_facets parameter (unless I'm mistaken)
>> >> does not sort the individual faces but rather sorts the vertices in
>> >> each facet.
>> >
>> >
>> > The documentation means that if "sort_facets" was True originally, then
>> > n_cells will also sort its result before returning it. ("then sort
>> > depending
>> > on the value of the sort_facets parameter": so if sort_facets was True,
>> > then
>> > n_cells should also sort. It doesn't mean "sort using the effect of the
>> > sort_facets parameter", but sort depending on its value, which is True
>> > or
>> > False. This could be made clearer, I guess.)
>> >
>>
>>
>> To be clear, I am getting different computations using the same sage
>> computations on different machines. One (recent, but used, linux)
>> machine consistently gives ones result, the other gives (randomly?)
>> several others. The "other" (a 8 yr old, a mac with possibly memory
>> issues) machine gives different results. I'm not saying your methods
>> are machine dependent, just that *for me* they seem to be.
>>
>> To be clear, these "inconsistent" computations take at least one day.
>> The "toy" (consistent) examples are okay.
>
>
> That's strange. Are you just getting different orders when you sort, or
> different answers for homology? Are the answers consistent on each machine?
> What type of object are the vertices?
>

The example which gives strange output is the bipyramid complex:

S = SimplicialComplex(maximal_faces=[(1,2,3), (1,2,4),\
  (1,2,5), (1,3,4),(1,3,5),(2,3,4),(2,3,5)])

which has 9 1-faces. I'm computing the list of all stable configurations,
namely vectors c in ZZ^9 having non-negative components which cannot
fire (in the sense of chip-firing - see Duval, Klivans, Martin
https://arxiv.org/pdf/1101.3981.pdf) with respect to the 1-dimls simplicial
spanning tree given by the 1-faces (1, 4), (1,5), (2,5), (3,4). On an old
mac running OS 10.11.6 and sage 7.2.b0, the output is usually 268125,
after about a day, but once I also got 137500. On a linux machine running
ubuntu and sage 7.3, I always get 395625. These computations use
the S.chain_complex.differential method to compute the 1-diml
combinatorial up Laplacian, Q, then does a time-consuming search.
(Basically, I check that no column vector q of Q, except possibly one
corresponding to a face in the spanning tree, has the property that
all components of c-q remain non-negative, except possibly those
corresponding to a face in the spanning tree.)

A similar computation using the 3-simplex is relatively quick and
always produces
2500 stable configurations for both machines.




>>
>>
>> > I don't know if there is ever a good reason to specify
>> > sort_facets=False.
>> > Maybe we should deprecate it?
>> >
>> >>
>> >> In my code, I expected the faces of a fixed dimension to
>> >> be returned as a deterministic sorted list not a set whose ordering
>> >> could be random. Now, it *does* seem as though the faces are sorted.
>> >> It's just that, to me, the documentation of n_cells doesn't make that
>> >> clear.
>> >>
>> >> I'm a

Re: [sage-support] Re: typo in simplicial complex documentation?

2017-06-10 Thread David Joyner
On Thu, Jun 8, 2017 at 10:49 PM, John H Palmieri <jhpalmier...@gmail.com> wrote:
>
>
> On Thursday, June 8, 2017 at 5:16:15 PM UTC-7, David Joyner wrote:
>>
>> Hi all:
>>
>> This is kind of a newbie question, as I'm not an expert on simplicial
>> complexes. It's also a minor technical issue on the documentation, not
>> the code.
>>
>> I'm trying to debug some code of mine and, on reading the
>> documentation for chain_complex on
>>
>> http://doc.sagemath.org/html/en/reference/homology/sage/homology/simplicial_complex.html,
>> found this: "The rows and columns of the boundary matrices are indexed
>> by the lists given by the n_cells() method, which by default are
>> sorted." On the other hand, the documentation for n_cells has this
>> statement: "Sort the list if the argument sort is True. If sort is
>> None (the default), then sort depending on the value of the
>> sort_facets parameter (from  the initialization of the simplicial
>> complex)." However, the sort_facets parameter (unless I'm mistaken)
>> does not sort the individual faces but rather sorts the vertices in
>> each facet.
>
>
> The documentation means that if "sort_facets" was True originally, then
> n_cells will also sort its result before returning it. ("then sort depending
> on the value of the sort_facets parameter": so if sort_facets was True, then
> n_cells should also sort. It doesn't mean "sort using the effect of the
> sort_facets parameter", but sort depending on its value, which is True or
> False. This could be made clearer, I guess.)
>


To be clear, I am getting different computations using the same sage
computations on different machines. One (recent, but used, linux)
machine consistently gives ones result, the other gives (randomly?)
several others. The "other" (a 8 yr old, a mac with possibly memory
issues) machine gives different results. I'm not saying your methods
are machine dependent, just that *for me* they seem to be.

To be clear, these "inconsistent" computations take at least one day.
The "toy" (consistent) examples are okay.

> I don't know if there is ever a good reason to specify sort_facets=False.
> Maybe we should deprecate it?
>
>>
>> In my code, I expected the faces of a fixed dimension to
>> be returned as a deterministic sorted list not a set whose ordering
>> could be random. Now, it *does* seem as though the faces are sorted.
>> It's just that, to me, the documentation of n_cells doesn't make that
>> clear.
>>
>> I'm asking if I'm mis-understanding something here or not.
>>
>> - David Joyner
>
>
> --
> John
>
>
> --
> 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.


[sage-support] typo in simplicial complex documentation?

2017-06-08 Thread David Joyner
Hi all:

This is kind of a newbie question, as I'm not an expert on simplicial
complexes. It's also a minor technical issue on the documentation, not
the code.

I'm trying to debug some code of mine and, on reading the
documentation for chain_complex on
http://doc.sagemath.org/html/en/reference/homology/sage/homology/simplicial_complex.html,
found this: "The rows and columns of the boundary matrices are indexed
by the lists given by the n_cells() method, which by default are
sorted." On the other hand, the documentation for n_cells has this
statement: "Sort the list if the argument sort is True. If sort is
None (the default), then sort depending on the value of the
sort_facets parameter (from  the initialization of the simplicial
complex)." However, the sort_facets parameter (unless I'm mistaken)
does not sort the individual faces but rather sorts the vertices in
each facet. In my code, I expected the faces of a fixed dimension to
be returned as a deterministic sorted list not a set whose ordering
could be random. Now, it *does* seem as though the faces are sorted.
It's just that, to me, the documentation of n_cells doesn't make that
clear.

I'm asking if I'm mis-understanding something here or not.

- David Joyner

-- 
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] Trouble with Sage assumptions

2017-04-17 Thread David Joyner
On Mon, Apr 17, 2017 at 7:53 PM, David White  wrote:
> Hello,
>
> I am trying to use Sage in my class with some basic problems about matrices.
> Several of the problems in the book are of the form “find all values of k
> such that … is consistent” where the … is some linear system where k
> appears. If doing these problems by hand, one would take the determinant and
> solve for the values of k where the determinant is not zero. Sometimes the
> linear system is large, so I want to be able to use the .determinant()
> command (or .echelon_form() for similar problems) on a matrix where k is an

Is this an example of what you want?

sage: k = var("k")
sage: A = matrix(SR, [[-1,20],[20,k]])
sage: det(A)
-k - 400
sage: solve(det(A)==0,k)
[k == -400]


> element. However, Sage is not letting me create such a matrix object,
> because it does not recognize my assume() command telling it that the
> variable k is rational (or real, for that matter; neither works).
>
> I’m trying to mimic what is going on here:
> http://doc.sagemath.org/html/en/reference/calculus/sage/symbolic/assumptions.html
>
> When I type the following code, I get an error saying Sage is "unable to
> convert k to an element of a rational field" (I get this error with and
> without the assume())
>
> var('k')
> assume(k,'rational')
> v = vec(QQ,[k,k,k])
>
> Can someone please tell me how to make variables and matrices play nicely
> together?
>
> --
> 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] Re: how to do this in SAGE

2017-02-07 Thread David Joyner
On Tue, Feb 7, 2017 at 7:14 AM,   wrote:
>
>
> On Saturday, February 4, 2017 at 4:46:38 PM UTC-6, Dima Pasechnik wrote:
>>
>>
>>
>> On Saturday, February 4, 2017 at 8:48:22 PM UTC, valer...@gmail.com wrote:
>>>
>>> I would like to know the right way to do in SAGE what I am currently
>>> doing with Mathematica in these two examples (I actually know how to do the
>>> first one in SAGE, but probably not in the best way):
>>> 1) Finding the intersection of a generic tangent line to f(x) with f(x):
>>> f[x_]:= x^2(x^2-1)
>>> L[a_,x_]:=f[a]+f'[a](x-a)
>>> Solve[L[a,x]==f[x],x]
>>> Here the main issue for me is how use the derivative f'(x) without having
>>> to define a new function g(x)=derivative(f(x))
>>
>>
>> Are your f always polynomials? Sage can do much more with polynomials then
>> with "generic" symbolic functions.
>> (e.g. for intersecting plane curves an exact approach would be to compute
>> the resultant, etc)
>>
>> Regarding your last question, certainly there is no need to define a new
>> named function for everything, e.g.
>> sage: f(x)=x^2
>> sage: f.diff(x)
>> x |--> 2*x
>> sage: f.diff(x)(5)
>> 10
>>
>> works
>
>
> f is not always a polynomial, but the above surely answers my question,
> thank you
>>
>>
>>>
>>>
>>> 2) Testing if |f(z)| < f(|z|) for various choices of f:
>>> Pl[f_,r_]:=Plot[Abs[f[r Exp[I t]]]/f[r],{t,0,2Pi}]
>>> Here I am mostly interested in how to write a command that uses a
>>> function as a variable.
>>
>>
>> Sage has two different types of "functions": 1) native Python functions 2)
>> symbolic functions;
>> certainly both of these can be passed around as parameters.
>
>
> I have not been able to use f as a parameter. To use a simpler example, what
> is the SAGE code corresponding to this Mathematica code:
> f[x_]:=1+x+x^2
> g[x_]:=1+x+x^2+x^3
> Ex[f_]:=Expand[f[x]^2]
> Ex[f]
>
> 1 + 2 x + 3 x^2 + 2 x^3 + x^4
>
> Ex[g]
>
> 1 + 2 x + 3 x^2 + 4 x^3 + 3 x^4 + 2 x^5 + x^6
>
> etc.
>

Here's one way:

sage: f = 1+x+x^2
sage: g = 1+x+x^2+x^3
sage: def my_expand(x): return (x^2).expand()
sage: my_expand(f)
x^4 + 2*x^3 + 3*x^2 + 2*x + 1
sage: my_expand(g)
x^6 + 2*x^5 + 3*x^4 + 4*x^3 + 3*x^2 + 2*x + 1



>
>
>
>>
>>
>>>
>>>
>>> Thanks for any suggestions.
>
> --
> 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] Sage Cell Server

2017-01-27 Thread David Joyner
On Fri, Jan 27, 2017 at 5:28 AM, Ingo Dahn  wrote:
> Hi,
> the Sage Cell server, which I plan to use for a Sage introduction workshop
> in the near future, seems to be down, which led me to the question whether I

http://sagecell.sagemath.org/ works for me. However, I confirm that
the android sagemath app is not working for me either. There is info
on setting up your own sagecell server here:
https://github.com/sagemath/sagecell




> can set up my own Sage cell server when I install Sage on my server.
> B.t.w the Android Sage app on the Google PlayStore doesn't seem to be
> working - no reaction when evaluating a cell, even for the provided
> examples, but that's not as important for me as long as I can access the
> cell server.
>
> --
> 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] Re: About inclusion of sage commands and output on word file/Latex file

2016-12-24 Thread David Joyner
On Sat, Dec 24, 2016 at 6:16 AM, NITIN DARKUNDE  wrote:
> I mean that, if there is any way via which one can get the output on word
> and then on latex, in order to include in research paper. I am strongly of
> opinion that maths writing must be in latex.
>


I like the fancyvrb package. Add

\usepackage{fancyvrb}

and

\newcommand{\sage}{{\sf Sagemath}\,}

to the preamble. Then add



\begin{Verbatim}[fontsize=\scriptsize,fontfamily=courier,fontshape=tt,frame=single,label=\sage]

sage: A = matrix(QQ, [[1 , -1 , 2 , 3 , 0], [ -1, 0, -4, 3, -1],
  [2, -1, 6, 0, 1], [-1, 2, 0, 1, 1]])
sage: A.right_kernel()
Vector space of degree 5 and dimension 2 over Rational Field
Basis matrix:
[   10 -1/201]
[   01  1/20   -2]

\end{Verbatim}



for the sagemath commands in the body of your document. It looks
really nice, IMHO.


> On Dec 24, 2016 4:43 PM, "Dima Pasechnik"  wrote:
>>
>> This is a bit off-topic, but writing maths in word is not really a good
>> idea. Every worthwhile
>> publication venue in mathematics or CS supports (La)TeX.
>>
>>
>> On Saturday, December 24, 2016 at 7:52:53 AM UTC, NITIN DARKUNDE wrote:
>>>
>>> Dear group members,
>>>I have been using sage since last 01
>>> month. I just done some easy commands in it . I want to ask you, how to take
>>> these commands and their output on word/latex file?(So that I can include,
>>> this stuff in my research paper). Thanks.
>>>
>>> --
>>> --
>>> Yours faithfully,
>>> ---
>>> Mr. Nitin Shridhar Darkunde.
>>> Assistant Professor,
>>> Department of Mathematics,
>>> School of Mathematical Sciences,
>>> Swami Ramanand Teerth Marathwada University,
>>> Vishnupuri, Nanded-431 606 (M.S.), India.
>>> Mob. No:08275268895Or09273500312
>>> 
>>>
>>>
>> --
>> 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.

-- 
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: Grobner bases of ideals

2016-12-21 Thread David Joyner
On Wed, Dec 21, 2016 at 7:14 AM, NITIN DARKUNDE  wrote:
> Respected Sir,
> I am trying to find Groebner basis of an ideal in
> polynomial ring in 35 variables over GF(2)(As per suggestions earlier, I am
> working over GF(2) instead of GF(3))  but I am not able to see the output


What happened when you replace 35 variables by <10 vars (also
suggested earlier)? Do you get what you expeced in that case?

> using sage. Even it do not shows any error in it. So,how to get the
> output?(Even I tried singular, but can't succeed.)
>
> --
> --
> Yours faithfully,
> ---
> Mr. Nitin Shridhar Darkunde.
> Assistant Professor,
> Department of Mathematics,
> School of Mathematical Sciences,
> Swami Ramanand Teerth Marathwada University,
> Vishnupuri, Nanded-431 606 (M.S.), India.
> Mob. No:08275268895Or09273500312
> 
>
>

-- 
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: Grobner bases of ideals

2016-12-21 Thread David Joyner
On Wed, Dec 21, 2016 at 7:28 AM, David Joyner <wdjoy...@gmail.com> wrote:
> On Wed, Dec 21, 2016 at 7:14 AM, NITIN DARKUNDE <darkundeni...@gmail.com> 
> wrote:
>> Respected Sir,
>> I am trying to find Groebner basis of an ideal in
>> polynomial ring in 35 variables over GF(2)(As per suggestions earlier, I am
>> working over GF(2) instead of GF(3))  but I am not able to see the output
>> using sage. Even it do not shows any error in it. So,how to get the
>> output?(Even I tried singular, but can't succeed.)
>>
>
> Please copy and paste your input and output into an email, or save it
> to a file and attach the file.
>


I copy+pasted this from a word doc the OP emailed me privately.


P.<x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23,x24,x25,x26,x27,x28,x29,x30,x31,x32,x33,x34,x35>=PolynomialRing(FiniteField(2),order='lex');
I=Ideal([x1*x21*x22*x23*x24*x25*x26*x27*x28*x29*x30*x31*x32*x33*x34*x35-1,x2*x14*x15*x16*x17*x18*x19*x20*x21*x22*x23*x24*x25*x26*x27*x28-1,x3*x11*x12*x13*x15*x17*x19*x20*x21*x22*x23*x24*x29*x30*x31*x35-1,x4*x8*x9*x10*x14*x18*x19*x20*x23*x24*x25*x27*
 
x29*x30*x32*x34-1,x5*x7*x8*x10*x12*x13*x19*x20*x22*x24*x25*x26*x29*x31*x32*x33-1,x6*x7*x9*x10*x11*x13*x16*x17*x18*x20*x22*x23*x25*x26*x29*x30-1,x1^2-1,x2^2-1,x3^2-1,x4^2-1,x5^2-1,x6^2-1,x7^2-1,x8^2-1,x9^2-1,x10^2-1,x11^2-1,x12^2-1,x13^2-1,x14^2-1,
 
x15^2-1,x16^2-1,x17^2-1,x18^2-1,x19^2-1,x20^2-1,x21^2-1,x22^2-1,x23^2-1,x24^2-1,x25^2-1,x26^2-1,x27^2-1,x28^2-1,x29^2-1,x30^2-1,x31^2-1,x32^2-1,x33^2-1,x34^2-1,x35^2-1]);
I.groebner_basis();



>> --
>> --
>> Yours faithfully,
>> ---
>> Mr. Nitin Shridhar Darkunde.
>> Assistant Professor,
>> Department of Mathematics,
>> School of Mathematical Sciences,
>> Swami Ramanand Teerth Marathwada University,
>> Vishnupuri, Nanded-431 606 (M.S.), India.
>> Mob. No:08275268895Or09273500312
>> 
>>
>>

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


  1   2   3   4   5   6   7   8   >