Re: [sage-support] Sagemath 9.5 kernel crash from GF(2) empty vector dot product
> On May 5, 2022, at 21:04 , Tracy Hall wrote: > > The following two lines crash the kernel in 9.5 but not 9.4: > > xx = vector(GF(2), []) > xx * xx > > It works correctly (with answer 0) over other finite fields or over QQ. > > Installation is Sagemath 9.5 in Ubuntu running under WSL for Windows; tested > also in CoCalc Sagemath 9.5 (where it crashes) and CoCalc Sagemath 9.4 (where > it correctly produces 0). I can confirm that if I run these two lines, the following happens: 9.4 (built locally, from scratch): the printed result is 0 9/.5 (the version supplied by Marc Culler): SIGSEGV [a segmentation fault in sage] no traceback supplied I am running on an iMac Pro (18 core Xeon), with macOS 10.13.6. I assume by “the kernel” you mean Sage, not the linux kernel. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income "Weaseling out of things is what separates us from the animals. Well, except the weasel." - Homer J Simpson -- 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/3BF1DFBD-30D2-44A2-B175-58B985DB93EA%40mac.com.
Re: [sage-support] Problem in running SageMath application
> On Jan 14, 2022, at 09:08 , Rahul Naik wrote: > > Guys, I have just installed SageMath for the first time. I am unable to run > any command . i am not even able to save the document. Please Help We are here to help, but in order to do that, it would help us to know what is going wrong. You have not given us much to go on. The following might help us: - what version of sage? - how did you install it (binary package from our website; similar from a package manager from your OS; compile from source)? - what hardware and OS (including OS version)? - how do you start sage (command line; notebook)? - what commands did you try, and what were the results. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds If you're not confused, You're not paying attention -- 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/466C08F7-0B82-4F20-80B4-88041C408C27%40mac.com.
Re: [sage-support] Memory issues when running simple program
FWIW, I ran this on a 2019 Mac Book Pro (8-core 2.4 GHz Core i9) with 64GB of memory and ~4TB of disk. The code thrashed the disk with more paging than I have seen in a long time with this much disk. As Nils guesses, it’s the parametric_plot() call that brings things to a halt. I finally killed it after about 4 hours. Also, memory usage for this python process seemed to stabilize for the last 2-3 hours. HTH Justin > On Sep 2, 2021, at 10:28, Britt Cagnina wrote: > > I'm running SageMath 9.2 on windows (and also tried 9.0 on Ubuntu). My specs > are: Intel i5-10600K CPU @ 4.10GHz, 32.0 GB RAM, and a RTX 3060 graphics card. > > When I run the following program, it seems to starts leaking memory until all > 32 GB is consumed, then crashes. I may be doing something silly in the below > example (though it is roughly copy/paste from > http://sporadic.stanford.edu/reference/plot3d/sage/plot/plot3d/tachyon.html) > > Or perhaps I simply don't have enough memory--which would be odd considering > I can ray trace much more complicated objects on Blender with no trouble. > > f = lambda t: (t, t^2, t^3) > t = Tachyon(camera_center=(5,0,4)) > t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.1, opacity=1.0, > color=(1.0,0,0)) > t.light((-20,-20,40), 0.2, (1,1,1)) > t.parametric_plot(f, -10, 10,'t', min_depth=20, max_depth=40) > t.save(filename='parametric.png', verbose=0, extra_opts='') > > Thanks for the time, > Britt > > -- > 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/9bc2b2c9-2e87-484f-97b8-a2541f2ed14dn%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/9C689B91-8971-46FC-B74A-375629408AC6%40mac.com.
Re: [sage-support] Adventure Academy Takes Math to the Next Level
My apologies. I have no idea how this arrived in a Sage mailing list (other, of course, than the fact that I appear to have sent it here, which is the mystery.) > On May 30, 2020, at 12:01 , 'Justin C. Walker' via sage-support > wrote: > > Idiots > >> On May 30, 2020, at 04:31 , Adventure Academy >> wrote: >> >> >> >> Get Your First Month Free >> >> >> MATH >> >> Adventure Academy takes math to the next level! >> For Kids 8–13 >> >> Young scholars don’t shy away from challenging school subjects when they’re >> made into games-and math makes for great games! >> >> With interactive activities, short and fun videos, and real-world examples, >> students learn to apply mathematics to everyday problems. And with engaging >> activities that guide them to explore new concepts, they can respond to >> challenges using problem-solving steps. >> >> >> The Adventure Academy math curriculum includes these essential topics, >> concepts, and skills: >> >> • Place Value >> • Whole Number Operations >> • One- and Two-step Word Problems >> • Measurement >> • Graphs >> • Geometry >> • Famous Formulas >> • And much more… >> >> At Adventure Academy, math is no problem. It’s a chance to earn rewards, >> unlock potential, and make learning especially exciting. >> >> >> Get Your First Month FREE! >> >> Unsubscribe from Adventure Academy emails. >> Please review our Privacy Policy >> >> TM & © 2020 Age of Learning, Inc. >> P.O. Box 10458, Glendale, CA 91209 >> >> > > -- > Justin C. Walker, Curmudgeon-At-Large > Director > Institute for the Enhancement of the Director's Income > > "Weaseling out of things is what separates us from the animals. > Well, except the weasel." > - Homer J Simpson > > > > -- > 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/F015BF19-34BD-4D8C-BC13-DACB5B89E4A0%40mac.com. -- Justin C. Walker Curmudgeon-at-large Director Institute for the Absorption of Federal Funds 186,000 Miles per Second Not just a good idea: it's the law! -- 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/EE3D1CF2-0E5C-4052-BD83-E9FB332F4F50%40mac.com.
[sage-support] Re: Adventure Academy Takes Math to the Next Level
Idiots > On May 30, 2020, at 04:31 , Adventure Academy > wrote: > > > > Get Your First Month Free > > > MATH > > Adventure Academy takes math to the next level! > For Kids 8–13 > > Young scholars don’t shy away from challenging school subjects when they’re > made into games-and math makes for great games! > > With interactive activities, short and fun videos, and real-world examples, > students learn to apply mathematics to everyday problems. And with engaging > activities that guide them to explore new concepts, they can respond to > challenges using problem-solving steps. > > > The Adventure Academy math curriculum includes these essential topics, > concepts, and skills: > > • Place Value > • Whole Number Operations > • One- and Two-step Word Problems > • Measurement > • Graphs > • Geometry > • Famous Formulas > • And much more… > > At Adventure Academy, math is no problem. It’s a chance to earn rewards, > unlock potential, and make learning especially exciting. > > > Get Your First Month FREE! > > Unsubscribe from Adventure Academy emails. > Please review our Privacy Policy > > TM & © 2020 Age of Learning, Inc. > P.O. Box 10458, Glendale, CA 91209 > > -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income "Weaseling out of things is what separates us from the animals. Well, except the weasel." - Homer J Simpson -- 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/F015BF19-34BD-4D8C-BC13-DACB5B89E4A0%40mac.com.
Re: [sage-support] tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 is not downloading SageMath
> On May 29, 2020, at 13:35 , Joshua Meadowcroft > wrote: > > um, I'm not surprised that the file or directory can not be found on my > machine. Because it hasn't been downloaded yet. That's what I'm attempting > to do. I used tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 to download Sage > last week on an identical different machine and it worked perfectly. So, it's > odd that the exact command is not doing it now. Well, perhaps Ubuntu has special mojo that would make that work, but on any Unix-like system I am aware of, what I saw in your attached snap of the command and output means to me that the command was expecting the file to be in the current directory. Nothing shows me that the command would know where in the world to look for the tarball other than locally. If it did work and now doesn’t, it’s beyond my experience. In your following message, you say “Unable to sagemath download pre-built binary from site”. Is that literal output from tar? It’s pretty weird phrasing, in the first place. And additionally, how does “it” know what the site is, and that the tarball contains a pre-built binary? Sorry I can’t be of more help. Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income When LuteFisk is outlawed, Only outlaws will have LuteFisk -- 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/1343AE75-10CA-4B6E-8646-D8AFBDCF4F82%40mac.com.
Re: [sage-support] tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 is not downloading SageMath
> On May 29, 2020, at 12:18 , Joshua Meadowcroft > wrote: > > Trying to download Sage on Linux Ubuntu but the following command isn't > working. What am i doing wrong? Please see attached picture. > > tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 If you check the results of this command, you will see what the problem is: "tar jxvf sage-9.1-Ubuntu_18.04-x86_64.tar.bz2: Cannot open: no such file or directory" This means that the “tar” command is not able to locate the file “sage-….” in the current directory. You either need to run this command in the directory containing the file, or give the “full” file name to the command. HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- While creating wives, God promised men that good and obedient wives would be found in all corners of the world. Then He made the earth round. -- -- 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/634FC636-6876-4DA4-B087-1CC99BF318F4%40mac.com.
Re: [sage-support] Sage Crash Report
> On Apr 13, 2020, at 14:59 , HANG HUANG wrote: > > I am trying to install Sage version 9.0 on the High performance cluster at my > university, which runs Linux (CentOS 7). I am installing to my local > "scratch" folder since I do not have administrative permissions. I am trying > to install from source code as the installing from pre-built binaries also > gives me some other error. I was able to run ./configure without any issues > and then when i did make, I received the following log file (attached) and > error: > > Error building Sage. > > The following package(s) may have failed to build (not necessarily > during this run of 'make all-start'): > > * package: flint-2.5.2.p5 > log file: /scratch/user/hhuang235/sage-9.0/logs/pkgs/flint-2.5.2.p5.log > build directory: > /scratch/user/hhuang235/sage-9.0/local/var/tmp/sage/build/flint-2.5.2.p5 > > The build directory may contain configuration files and other potentially > helpful information. WARNING: if you now run 'make' again, the build > directory will, by default, be deleted. Set the environment variable > SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this. > > make[1]: *** [all-start] Error 1 > make[1]: Leaving directory `/scratch/user/hhuang235/sage-9.0' > make: *** [all] Error 2 Checking the log file for flint that you attached, there is this: ccache: error: Failed to create temporary file for /home/hhuang235/.ccache/2/9/8e02d78d68b9638edd65c3e5744171-2001.manifest.tmp: Disk quota exceeded I think that should explain the problem you are having. Is the “scratch folder” on a disk of small size, or does it have a small amount of free space? The source build of Sage does take a lot of space. On my system, Sage 9.0 uses about 7.5 GB (when complete). HTH Justin -- Justin C. Walker Curmudgeon-at-large Director Institute for the Absorption of Federal Funds 186,000 Miles per Second Not just a good idea: it's the law! -- 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/8F194F5B-3706-4290-AB20-9E16425014D4%40mac.com.
Re: [sage-support] Does SageMath work on Mac OS 10.14.6
I have all recent Sage versions running on macOS versions 10.13, 10.14, and 10.15. All built from a clone of the develop tree, and built with few if any issues. I build *without* the aid of HomeBrew, MacPorts, or any of the other “package management” schemes available. HTH Justin > On Feb 24, 2020, at 16:04 , seriously wrote: > > Seriously, has anyone got one of the current releases of Sage to work on any > Mac platform? > > I tried several times, lately with version 8.8 for 10.14.5. I dropped the > binary in Applications. > It can start up then - it opens a browser window which just stalls; it has a > drop-down menu called "Terminal Session", > which doesn't do anything, and if I go directly into the App and execute > ./sage, all kinds of errors appear > (many about permissions) and it crashes. > > Unfortunately I want to run a program built on this platform, and really need > a working version. > Any ideas are 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/c5b789fb-04de-4249-a0a9-c26fe7cf23dc%40googlegroups.com. -- Justin C. Walker Director Institute for the Enhancement of the Director's Income -- Fame is fleeting, but obscurity just drags on and on. F -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/3F020F30-4144-49F7-844C-EA1A3D75489D%40mac.com.
Re: [sage-support] "SageMath is damaged and can't be opened" on macOS 10.14
> On Jan 10, 2020, at 09:18 , kcrisman wrote: > > > > On Friday, January 10, 2020 at 3:18:17 AM UTC-5, Dima Pasechnik wrote: > On Fri, Jan 10, 2020 at 8:01 AM Szabolcs Horvát wrote: > > > > I just installed the app version of SageMath 9.0 on macOS 10.14. When I try > > to launch it, I get "SageMath is damaged and can't be opened." Version 8.9 > > worked fine on the same macOS version. > > > > Do others have this problem too? It would be surprising to me if this were > > a universal problem, as it would have certainly been noticed before > > publishing the distribution ... > > > > Is there a workaround? > > don't use the app version. Use a "normal" terminal version. > > > > > > > > Is SageMath struggling with getting enough developer resources? Recently > > one has to go through more and more hoops to be able to use it ... it's no > > longer possible to just download a binary and start it like any normal app. > > The last few versions already took minutes to start on macOS unless they > > were launched manually from the command line. > > Apple keeps introducing new security features that are supposed to > make MacOS "safer" :-) > > We don't have any active developers who are experts in MacOS specifics. > And no paid engineers to look into this sort of unpleasant stuff, > since the end of OpenDreamKit grant few months ago. > > I think the app version must be pulled, I have been saying this for some > time. > > Which app version was used? I just tested the one I built on my own > computer and I was able to get it going. However, that is OS X 10.11 - I > don't have access to the newer versions. FWIW, I am running the Sage 9.0 app on macOS 10.13.6 (it appears to have been built for 10.11, according to the name). I will be trying later versions of the app on 10.13.6, 10.14.6 and (I think) 10.15.x later today or this weekend. Justin -- Justin C. Walker Director, Institute for the Absorption of Federal Funds -- Taxes, n.: Of life's two certainties, the only one for which you can get an extension. -- -- 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/6BDA7C45-0ADD-43F2-904E-83599D64FB2E%40mac.com.
Re: [sage-support] How to define variables over integer
> On May 8, 2019, at 06:14 , Santanu Sarkar > wrote: > > I know how to define variables over BooleanPolynomialRing. > This is as follows. > > n=4 > V=BooleanPolynomialRing(n+1,['z%d'%(i) for i in range(n+1)] ) > V.inject_variables() > > Can we define similar code over integers (ZZ) or rationals (QQ)? > Also I want to store variables in an array like Z=[z0,z1,z2,z3] > but it should be automatic. I will change only n. Check out PolynomialRing. Typing PolynomialRing? will give you some documentation. HTH Justin -- Justin C. Walker Curmudgeon at Large Director Institute for the Enhancement of the Director's Income -- Build a man a fire and he'll be warm for a night. Set a man on fire and he'll be warm for the rest of his life. -- 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/BBF0F4D5-0ABA-4B47-B730-DD38A2F23B3C%40mac.com. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] How to permute a list of elements in sage
> On May 19, 2019, at 20:29 , jianrong wrote: > > Dear All, > > I am trying to write a function in sage to permute a list of elements. > > def f(i, v1): > v=[] > for j in v1: >v.append(j) > > print(v) > v[i+1]=v1[i] > v[i]=v1[i+1] > return v > > But the above codes do not work. I couldn't figure out the mistake. Thank you > very much. It would help to know what “codes do not work” means. Do you get an error message, or does the function f() not produce the result you want. It may be that you do not have much experience with the Python programming language. There is extensive documentation available at <https://python.org>. In case your copy of the code you are writing was exactly what you used, the problem may be that you are not following the indentation rules that Python uses. This code, which is the same as yours, except for indentation, works for me: def f(i, v1): v=[] for j in v1: v.append(j) print(v) v[i+1]=v1[i] v[i]=v1[i+1] return v HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds Men are from Earth. Women are from Earth. Deal with 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 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/47CF431B-A92F-4FC5-8A3A-17B83E4B365D%40mac.com. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] A case of immaculate conception...
Oy! Mon dieu! > On Mar 20, 2019, at 14:00 , Simon King wrote: > > Hi John, > > On 2019-03-20, john_perry_usm wrote: >> ... >> >> 2) In Catholic theology it is not actually "necessary" for Mary to be free >> of original sin; rather, it is "fitting". > > Right, "fitting" may be the better wording. And concerning the necessity of > the doctrine of immaculate conception: 13th till 19th century (before pope > Pius IX. turned immaculate conception into a dogma), the Dominicans provided > alternative facts, namely "Sanctificatio Mariae" instead of immaculate > conception. Whereas virginal conception is accepted doctrine in Catholicism, > Protestantism and Islam, immaculate conception is dogma in Catholicism, not > accepted as a dogma in most other branches of Christian theology, and > irrelevant to Islam. > > So, back to SageMath, hoping to not hurt people's feelings: According to > the scripture (SageMath documentation), in > sage: f(x,y) = x^2+y > x and y are virginally conceived by the symbolic ring through the power > of the preparser, which is commonly accepted by SageMath's followers. > However, the scripture does not assert that the symbolic ring is free of > sin (bugs), and thus not all followers agree on the immaculate conception > of the symbolic ring. > > Best regards, > Simon > > -- > 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. -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- While creating wives, God promised men that good and obedient wives would be found in all corners of the world. Then He made the earth round. -- -- 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 is extremely slow to start on macOS Mojave
> On Mar 1, 2019, at 10:30 , Dima Pasechnik wrote: > > On Fri, Mar 1, 2019 at 1:15 PM Szabolcs Horvát wrote: >> >> I am using the app version of Sage 8.6 on macOS Mojave 10.4.3. It is >> extremely slow to start up. It takes multiple minutes. >> >> Running the sage or Sage executables found within the app bundle is fast—it >> takes only a few seconds, as it should. It is launching the app the normal >> way (double click) that does not work. >> >> Is this a known problem and is there a solution? > > The known problem is that the app version has not been looked at by a > MacOS developer for years. It might be using something obsolete. > > We are now trying to offer a Google Summer of Code project to work on it. > > If the app version is so bad then we perhaps should just pull it. I have been unable to get the .app (8.4 or 8.5) working on 10.14, but it works just fine on earlier versions of macOS, so I don’t think pulling it is a great idea. Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- My wife 'n kids 'n dogs are gone, I can't get Jesus on the phone, But Ol' Milwaukee's Best is my best friend. --- -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] algorithme
> On Jan 19, 2019, at 17:23 , Anton Sherwood wrote: > > On 2019-1-19 15:52, MAMANE DJAMILOU Salissou Dango wrote: >> Bonjour, >> je suis un tous nouveau utilisateur de sagemath. Je maîtrise les opérations >> indépendantes. Mon souci se trouve au nivaux des algorithmes. je n'arrive, >> jusque là pas à comprendre comment programmer avec sageMath (voir les >> ''screenshots''). >> merci de m'aider à démarrer. > > An attempt at translation: > Good day, > I am a very new user of sagemath. I am mastering independent operations. My > trouble is on the level of algorithms. > So far, I cannot understand how to program with sageMath (see the > screenshots). > Thanks for helping me to get started. The problem is the use of “\”. Python programs are structured by indentation, so the way to type the program in an editor, at the command line prompt, or in the notebook, is as follows: def fac(n): if n == 1: print ‘bonjour’ else: print “bonsai” The OP was entering the code almost correctly, but the “\” caused the parser to ignore the new-line, and string everything together as one line. HTH Justin -- Justin C. Walker Director Institute for the Enhancement of the Director's Income -- Fame is fleeting, but obscurity just drags on and on. F -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] SageMath 8.5 Crash Report
> On Dec 29, 2018, at 11:04 , Adam O Hausknecht wrote: > > Hi, > > I have attempted to install SageMath 8.5 on a 15" 3.1 GHz Intel Core i7 16GB > 2017 MacBook Pro running Mac OS 10.14.2 > > • First the App version via DMG. This caused my MacBook Pro to restart > while attempting to open the .DMG > • Second via the Terminal version via .tar.bz2. This generated the > arched crash log when attempting to launch via the Terminal I have roughly the same system as you, with 10.14.2. I have successfully installed the 8.5 “.app” from the DMG without issue (although I can’t seem to start sage in a terminal window). I have yet to install from the tarball, but it sounds like you unpacked the tarball and then tried to run “./sage”. Is that correct? If so, that does not work, because the tarball contains only source. To use it, you have to first build it, which, AFAIR, takes about 1-2 hours if you include testing. It also requires you to have the Xcode command-line tools installed. If you are not up for building from scratch, there should be a .dmg of a pre-built 8.5 version for 10.14 at the same place you got the .app version. That may work better for you. If some of that is unclear, or you want more pointers/info, reply back. There is also information available on the sagemath website. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds If you're not confused, You're not paying attention -- 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] different result from file or at prompt
Try returning the plot at the last line, and run the procedure again return complex_plot(…) I think the problem is that your procedure swallows the result of the plot. HTH > On Nov 13, 2018, at 20:38 , Michael Beeson wrote: > > def nov13(): > var('M,N,z') > f = (M^2-3*N)*(-i *sqrt(3)-1) *z^3 > f = f + (M^2 *(-i *sqrt(3) +3) + 3*N*(-i *sqrt (3) - 1))*z^2 > f = f + (M^2 *(i *sqrt(3)+3) + 3*N* (i* sqrt(3)-1))*z + (M^2-3*N)* (i* > sqrt(3)-1) > g = f.substitute(M=6,N=11) > complex_plot(g, (-3, 3), (-3, 3)) > > if this code is put in a file and the file is "attached" I get no plot, but > if > I paste the function body in to a prompt then I do get a (very nice) plot. > I expected it would run from an attached file, which is how I usually use > SageMath. > Can someone explain why I don't get a plot that way? > > > -- > 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. -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- -- They said it couldn't be done, but sometimes, it doesn't work out that way. - Casey Stengel -- -- 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] sage.app question
Hi, all, This may be something obvious, but I was surprised when, using a terminal session launched from sage.app-8.4, I could not “%attach”. The complaint was “no module named attach”. The full traceback is --- ImportError Traceback (most recent call last) in () > 1 get_ipython().magic(u'attach') /private/tmp/SageMath-8.4.rc1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s) /private/tmp/SageMath-8.4.rc1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line) in attach(self, s) /private/tmp/SageMath-8.4.rc1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython/core/magic.pyc in (f, *a, **k) /private/tmp/SageMath-8.4.rc1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/repl/ipython_extension.pyc in attach(self, s) /private/tmp/SageMath-8.4.rc1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in ex(self, cmd) in () /private/tmp/SageMath-8.4.rc1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach) ImportError: No module named attach Help! And, in advance, Thank! Justin PS: This is on macOS 10.13.6. -- Justin C. Walker Director Institute for the Enhancement of the Director's Income -- Fame is fleeting, but obscurity just drags on and on. F -- Justin C. Walker Curmudgeon-at-large -- Network, n., Difference between work charged for and work done -- 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?
> On Feb 28, 2018, at 00:09, Dima Pasechnik <dimp...@gmail.com> wrote: > > I would be for dropping 'x' as the only "default" variable (defined at start > time). > Sage is unique in this sense AFAIK; there are CASes which don't require > declaration of any variable, > there are ones that don't have any special variables like Sage's 'x’. I am mildly in favor of dropping this predefinition (FWIW). Also, for this discussion, one can always access the variable by something like this: sage: x=P.variables()[0] Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- 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] unable to install sagemath, segmentation faults
> On Feb 27, 2018, at 11:55 , Michael Murphy <pn1...@gmail.com> wrote: > > any idea why this segmentation fault happens when I try to install? > > "patching > /Users/michaelmurphy/Desktop/SageMath/local/lib/python2.7/site-packages/matplotlib-1.5.1-py2.7-macosx-10.9-x86_64.egg/matplotlib/_png.so > /Users/michaelmurphy/Desktop/SageMath/src/bin/sage-env: line 408: 330 > Segmentation fault "$SAGE_ROOT/local/bin/python" -c 'import pkg_resources; > pkg_resources.get_distribution("matplotlib").version' 2> /dev/null" > > > > I am running MacOS 10.6.8 > > the binary that I used were : I am pretty sure that code built for 10.11.6 won’t run on 10.6.8. I have both of those systems, and the latest Sage I have on the latter is 6.10. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds Men are from Earth. Women are from Earth. Deal with 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 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] commend to get eigen values for matrix
> On Nov 16, 2017, at 20:20 , rajni goyal <goyalrajni2...@gmail.com> wrote: > > I want to know commend to get eigen values There are a couple of ways to find out commands to get what you want. If you have an idea of what the command might be, type its first several letters follow by the TAB character. If you have an object (like a matrix), type its name followed by a period, and TAB, like this (the string: “[TAB]” represents the TAB character; it isn’t printed, and it’s not what you type): sage: MS=MatrixSpace(QQ,2,2) sage: M=MS.random_element() sage: M [-2 2] [-1 -2] sage: M.det() 6 sage: M.[TAB] (or M.ei[TAB], etc.) The latter gets you sage: M.eigen[TAB] M.eigenmatrix_left M.eigenspaces_right M.eigenvectors_right M.eigenmatrix_right M.eigenvalues M.eigenspaces_left M.eigenvectors_left Use cursor keys to select what you want, and add parens: sage: M.eigenvalues() [-2 - 1.414213562373095?*I, -2 + 1.414213562373095?*I] Note: some names are values associated with the object, not functions. Typing a question mark after a full name (like M.eigenvalues) gets you documentation; a double question mark gets you doc with code. Play around with it; ask more questions. See also <http://ask.sagemath.org> as another place to ask. HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- I want to die, peacefully in my sleep, like my grandfather; not screaming in terror, like his passengers. -- 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 install error
> On Sep 7, 2017, at 21:51 , Alktebi A <aalkteb...@gmail.com> wrote: > > for some reason I can't install sage app on my Mac. it says unindefined > developer. > as shown in the attachment. Searching the Information Superhighway, I get this link which may help: <https://support.apple.com/en-us/KM205142?cid=acs::applesearch> -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- 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] Discrete Logarithm
On May 12, 2017, at 20:52 , Venkataraman S wrote: > I vaguely remember that if one can quickly find a quadratic non-residue, one > can find a primitive root fast. I don't remember the exact connection now. > Does anybody in the group have any reference? Internet search can be helpful in times like this. Also, Cohen's "Course" is a great place to look. HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- If it weren't for carbon-14, I wouldn't date at all. --- -- 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: sage via ssh
Thanks for the reply, Dima. On Apr 13, 2017, at 02:14 , Dima Pasechnik wrote: > > > On Thursday, April 13, 2017 at 4:43:06 AM UTC+1, Justin C. Walker wrote: >> >> Hi, all, >> >> I just tried to ssh between two of my macOS systems. They use different >> versions of macOS (10.6.8, 10.11.6) and of sage (6.10 and 7.6, >> respectively). >> >> When I went from 10.6.8 to the other, and ran sage 7.6, I got flashing >> bits of the stuff I was typing. E.g., the "sage: " flashed, and "Fz. = >> PolynomialRing(F, "z") had the "z" at the end flash. >> > > something to do with LOCALE/TERM etc settings, TERM is set to xterm-color, uniformly. LOCALE is set to unset, uniformly. > perhaps further affected by Jupyter (and/or other pagan gods). I ssh in, and run "sage" from the command line. Is jupyter acting as the console interpreter? I thought that was pure IPython... To cover more bases, I don't see the flashing when using a Terminal window on the 10.11 system (same TERM and LOCALE as for the ssh window). > I do a lot of work with Sage via ssh (although not on OSX systems), never a > real problem, > so that's a special OSX weirdness, too. I'm not seeing any environmental differences (other, of course, than the OS/Sage versions involved). Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- Question 43: What if the hokey pokey really *is* what it’s all about? -- -- 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] sage via ssh
Hi, all, I just tried to ssh between two of my macOS systems. They use different versions of macOS (10.6.8, 10.11.6) and of sage (6.10 and 7.6, respectively). When I went from 10.6.8 to the other, and ran sage 7.6, I got flashing bits of the stuff I was typing. E.g., the "sage: " flashed, and "Fz. = PolynomialRing(F, "z") had the "z" at the end flash. Anyone know what's up with that? It's charming for the first 5 seconds, but it gets old in a hurry (flashing continues, at 1-second intervals), and causes strange flashbacks, about which the less said, ... How do I persuade Sage to knock it off? Thanks! Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- 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] OS X 10.12
On Mar 7, 2017, at 11:14 , crownea...@gmail.com wrote: > Does SAGE work on OS X 10.12? I moved SageMath to my applications > directory and then > > ┐ > │ SageMath version 7.5.1, Release Date: 2017-01-15 │ > │ Type "notebook()" for the browser-based notebook interface.│ > │ Type "help()" for help.│ > └┘ From the look of this: > > ERROR: The Sage installation tree has moved > > from > /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma > to /Applications/SageMath > > This is not supported, and Sage will not work. To install Sage from a > binary package: I'll guess that someone built the Sage system, and then you (?) moved it, as indicated. As the message says, if you run Sage, and then move that tree somewhere else, it does what you saw: complain and stop. When run for the first time, Sage tells you that it is "hardcoding paths", which is why you can't move it after running. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income When LuteFisk is outlawed, Only outlaws will have LuteFisk -- 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 sage's palp decompress these polytopes?
On Feb 5, 2017, at 21:32 , Brian Fitzpatrick wrote: > Kreuzer has a list of five-dimensional reflexive polytopes at this link: > > http://quark.itp.tuwien.ac.at/~kreuzer/d5/ > > I want to read these compressed files. Is this possible in sage? I doubt that there's a way to say "read this file" and have Sage provide a fully uncompressed and reformatted database for you (unless there is someone out there already working on this data). However, Sage is built on the programming language Python (v2.x right now), and you can do IO with the language. Check the documentation at <https://docs.python.org/2/library/index.html> (Sec 15.2 and possibly other places). You don't say how familiar you are with programming, Sage, and Python, so I stuck with the simple stuff. Ask here for more clarification, as needed. HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- 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] Quadratic form polynomial
On Feb 2, 2017, at 23:30 , Christophe Bal wrote: > Hello. > > Who is the author of the quote "I would like to die. ..." ? Got on a bumper sticker on the Information Superhighway... -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income "Weaseling out of things is what separates us from the animals. Well, except the weasel." - Homer J Simpson -- 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] Quadratic form polynomial
On Feb 2, 2017, at 12:51 , Watson Ladd wrote: > Dear all, > > I believe the q.polynomial() routine where q is a quadratic form is off by > a factor of 2. Or at least it should be. If we take the form q of dimension > 2 such that > q(1, 0)=q(0,1)=1, and q(1,1)=2, then q.polynomial() is 2*x_0^2+2*x_1^2, > which seems weird to me. Also the documentation should state we take twice > the Gram > matrix as the input matrix: this isn't inherently clear. This "weirdness" has been with us since the 18th or 19th centuries :-} I think it was cemented into the landscape by Gauss's Disquisitiones: his idea of a binary quadratic form is one of the form a*x^2 + 2*b*x*y + c*y^2 If you want a "less weird" (Langrange) approach, and are interested only in binary forms, look at the class BinaryQF. HTH Justin PS: Weil's "Number theory: an approach..." discusses this (from an historical perspective). -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- I want to die, peacefully in my sleep, like my grandfather; not screaming in terror, like his passengers. -- 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] Setting end variable on print
On Jan 3, 2017, at 20:54 , saad khalid wrote: > Hey everyone: > > I would like to use the print function without it creating a new line. From > what I remember, I could do print("whatever I want", end=""), and that > should make it not create a new line. However, when I do this, I get an > error saying > > print("hi", end = "") > ^ > SyntaxError: invalid syntax I believe that the Python syntax is print "hi", (at least for Python 2; not sure about v. 3). HTH Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income --- If you don't know where you're going, you might wind up someplace else. - Yogi Berra -- -- 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: Development process
On Dec 6, 2016, at 14:36 , Dima Pasechnik wrote: > I'll comment on how to use plain git > http://doc.sagemath.org/html/en/developer/manual_git.html#git-the-hard-way > > On Tuesday, December 6, 2016 at 9:03:46 PM UTC, Justin C. Walker wrote: >> >> Hi, all, >> >> I have not done any real Sage development for a while (the last time, I >> think, there were wolves in Wales). >> >> I want to work on an existing Trac ticket, and I'm not clear on how to >> start this work. >> >> The ticket page gives me a branch (u/blah/branch-name). Thanks to Dima, John, Nils for the pointers and suggestions. I already had git-trac installed, but I had not plumbed its depths... William: I am not sure I believe you were around when there were wolves in Wales... Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income When LuteFisk is outlawed, Only outlaws will have LuteFisk -- 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] Development process
Hi, all, I have not done any real Sage development for a while (the last time, I think, there were wolves in Wales). I want to work on an existing Trac ticket, and I'm not clear on how to start this work. The ticket page gives me a branch (u/blah/branch-name). I am starting in a new, empty directory, and 'git' seems to want a repository specified. I have a "global" .gitconfig file set up. A couple of questions: Should I check out the 'develop' branch first, and then incorporate (how?) the branch on top, or should I check out the branch first, and then updated it (how?) to the develop branch? I have read the TentativeConventions page on the wiki, but it seems to be slightly outdated. Pointers, advice, etc. are more than welcome. Thanks in advance, Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income --- Nobody knows the trouble I've been --- -- 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: Bug(?) in the division of polynomials with the TermOrder('neglex')
On Nov 22, 2016, at 05:40 , Dima Pasechnik wrote: > > On Tuesday, November 22, 2016 at 12:19:37 PM UTC, Sho Takemori wrote: >> >> Thank you very much for your explanation. I have seen your post at >> sage-devel before, but completely forgot it. >> >> I guess it would be better to raise an error or print a message than to >> return a wrong result, if it is a known bug and not fixed yet. >> > > In fact, Singular 4.0.3 (now in Sage 7.5.beta3) > does the right thing: > >> ring r=0,(a),ls; >> (1/2+a)/(1+2*a); > 1/2 > > (same if I use more variables while defining r, not just one) > > Thus I guess Sage does not get from Singular the data right... I see the same with Singular 3.1.3: $ Singular SINGULAR / Development A Computer Algebra System for Polynomial Computations / version 3-1-3 0< by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann \ March 2011 FB Mathematik der Universitaet, D-67653 Kaiserslautern\ // ** executing /SandBox/Justin/sb/Singular/3-1-3/LIB/.singularrc > ring R=0,x,dp; // ** redefining R ** > poly f1=(1/2)+x; > poly f2=1+2*x; > f1/f2; 1/2 FWIW. Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- I want to die, peacefully in my sleep, like my grandfather; not screaming in terror, like his passengers. -- 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] PALP database for 4D reflexive polytopes?
On Sep 20, 2016, at 10:41 , Ursula Whitcher wrote: > I tried to install the PALP database for four-dimensional reflexive > polytopes on the SageMath cloud, following the documentation at > > http://doc.sagemath.org/html/en/reference/geometry/sage/geometry/polyhedron/palp_database.html > > , It looks (below) like two problems: 1. You don't have permission to write (create/change files) in the directory tree SAGE_ROOT. 2. This: "Error: package 'polytopes_db_4d' not found" I'm not sure how to overcome the first. If sage is installed on a multiuser system, in an admin/root-owned tree, you are stuck, I think. Check with the system admins. As for the second, you don't seem to have enough information below to figure out why the package is not found. Are you sure the name is complete and correct? The link you include (above) only seems to give use examples, not install instructions. HTH Justin > which suggests the shell command > > sage -i polytopes_db_4d > . > > This didn't work. I'm not sure whether the failure implies a problem with > the database, or with the place I'm trying to put it on the cloud (this is > a standard Sage installation, not a development version, on a members-only > server without extra internet access enabled). Here's the full terminal > output: > > *** > > make build/make/Makefile > make[1]: Entering directory '/projects/sage/sage-7.3' > make[1]: 'build/make/Makefile' is up to date. > make[1]: Leaving directory '/projects/sage/sage-7.3' > build/bin/sage-logger \ >"cd build/make && ./install 'all-toolchain'" logs/install.log > tee: logs/install.log: Permission denied > ./install: line 28: /projects/sage/sage-7.3/.BUILDSTART: Permission denied > Nothing to (re)build / all up-to-date. > > Error: package 'polytopes_db_4d' not found > Assuming it is an old-style package... (this is deprecated: use -p instead of > -i to install old-style packages) > > tee: /projects/sage/sage-7.3/logs/pkgs/polytopes_db_4d.log: Permission denied > /projects/sage/sage-7.3/build/bin/sage-spkg: line 283: cd: > /projects/sage/sage-7.3/upstream: No such file or directory > Attempting to download package polytopes_db_4d > Traceback (most recent call last): > File "/projects/sage/sage-7.3/build/bin/sage-download-file", line 27, in > >from sage_bootstrap.download.cmdline import run_safe > File > "/projects/sage/sage-7.3/build/bin/../sage_bootstrap/download/__init__.py", > line 8, in >from sage_bootstrap.download.mirror_list import MirrorList > File > "/projects/sage/sage-7.3/build/bin/../sage_bootstrap/download/mirror_list.py", > line 22, in >from sage_bootstrap.env import SAGE_DISTFILES > File "/projects/sage/sage-7.3/build/bin/../sage_bootstrap/env.py", line 47, > in >assert os.path.isdir(SAGE_DISTFILES) > AssertionError > > *** > > Any ideas? > > Thanks-- > Ursula. > > -- > 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. -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income Experience is what you get when you don't get what you want. -- 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] (William Stein) "my top priority right now is to **make a lot of money**"
Why is this still being discussed? It belongs on the flame list. On Aug 24, 2016, at 13:12 , Nathann Cohen wrote: > Quote from William Stein, CEO of SageMath Inc (private for-profit > Delaware company) [1] > >So there is no confusion, my top priority right now is to **make a lot >of money** by building a profitable company on open source software >(Latex, Linux, Sage, Octave, R, etc.) > >(full post) >https://groups.google.com/d/msg/sage-devel/B3WnJr6S1bw/JQ_jvOITBAAJ > > This post being entirely factual, I shouldn't be held responsible for > its content. > > Nathann > > [1] > http://www.edgarcompany.sec.gov/servlet/CompanyDBSearch?page=detailed=0001634867_back=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 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. -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income Experience is what you get when you don't get what you want. -- 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] Magma in Sage
> On Aug 20, 2016, at 05:45 , ciri...@gmail.com wrote: > > Is there support for magmas in Sage? I'm talking about the mathematical > definition of a magma (a set with a binary operation), NOT the interface to > the package Magma. If there is, can someone point me to documentation that > tells what kind of things Sage can do with magmas? Search for “magma” in the reference manual. This will give you pointers to both Magma usage from Sage, and to support for “magmas” in Sage. HTH -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- Question 43: What if the hokey pokey really *is* what it’s all about? -- -- 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] run SU as_permutation_group has error
On Jun 23, 2016, at 17:56 , meInvent bbird wrote: > I had tried permutation in syntax below, still have error > > PermutationMat((2,3,5)(6,7,8),(1,2,4,7)(3,6,8,5)); > PermutationMat(((2,3,5)(6,7,8),(1,2,4,7)(3,6,8,5))); > PermutationMat((2,3,5)(6,7,8)); > > > gap> PermutationMat((2,3,5)(6,7,8),(1,2,4,7)(3,6,8,5)); > Error, usage: PermutationMat( , [, ] ) called from > ( ) > called from read-eval loop at line 1 of *stdin* > you can 'quit;' to quit to outer loop, or > you can 'return;' to continue I don't think you've read the manual; the error message you got should give you a clue, and suggest reading the manual to find out what this procedure does and what the arguments are for. What are you trying to achieve? Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- 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: matrix function
On May 19, 2016, at 01:55 , Alberto Verga wrote: > This seems to work > r = matrix(CallableSymbolicExpressionRing((theta,)), cos(theta/2)*s0 - > I*sin(theta/2)*sy) > > Are there other possibilities? I believe that your original code does not define a function. Try something like this: def r(theta): return cos(theta/2)*s0 - I*sin(theta/2)*sy Check the doc at python.org (function definition, ...). HTH Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- 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_prime() error
> On Apr 5, 2016, at 09:54 , Harald Schilly <harald.schi...@gmail.com> wrote: > > the division changes the type to a rational number. I.e. > > type(q) > > > and > > is_prime(Integer(q)) > True > > fixes this. Not sure if that's a bug. It's certainly not obvious why this > happens. I’m not sure this will help, but in Magma: > p1:=211859; > > q:=(p1-1)/2; > p1; 211859 > q; 105929 > IsPrime(p1); true > IsPrime(q); false > Type(p1); RngIntElt > Type(q); FldRatElt > IsPrime(ZZ!q); true At least, we’re in “good company”… Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- 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] spec.an_element()
On Mar 31, 2016, at 12:33 , William Stein wrote: > On Thu, Mar 31, 2016 at 12:31 PM, Justin C. Walker <jus...@mac.com> wrote: >> Dear Sage Support: >> >> Just checking, but this seems wrong: >> >> sage: R12=Integers(12) >> sage: Spec12=Spec(R12) >> sage: Spec12.an_element() >> Point on Spectrum of Ring of integers modulo 12 defined by the Principal >> ideal (0) of Ring of integers modulo 12 >> >> Checking the code (schemes/generic/scheme.py), if the coordinate ring is not >> the rational integers, it punts and assumes the zero-ideal is prime in that >> ring. > > You're right -- this is definitely wrong. This is now <http://trac.sagemath.org/ticket/20338> Suggestions (on the ticket) welcome. -- Justin C. Walker, Curmudgeon-at-Large () The ASCII Ribbon Campaign /\ Help Cure HTML Email -- 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] spec.an_element()
Dear Sage Support: Just checking, but this seems wrong: sage: R12=Integers(12) sage: Spec12=Spec(R12) sage: Spec12.an_element() Point on Spectrum of Ring of integers modulo 12 defined by the Principal ideal (0) of Ring of integers modulo 12 Checking the code (schemes/generic/scheme.py), if the coordinate ring is not the rational integers, it punts and assumes the zero-ideal is prime in that ring. Thanks for confirmation or firm smacks! Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- If it weren't for carbon-14, I wouldn't date at all. --- -- 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 problem on Mac OS X
On Mar 31, 2016, at 10:36 , Jacques Tramu wrote: > Hi, after installation of Sage-6.9 which did not work (unknow signal at > startup), I installed > Sage 7-1. osX-10-11.3-x86-64 > IT aborts with the following message : > > > Last login: Thu Mar 31 19:20:44 on ttys000 > -bash: PS1: command not found > '/Applications/SageMath-7.1.app/Contents/Resources/sage/sage' --notebook > iMac-de-Jacques-Tramu:~ echolalie$ > '/Applications/SageMath-7.1.app/Contents/Resources/sage/sage' --notebook > /Applications/SageMath-7.1.app/Contents/Resources/sage/sage: line 118: cd: > /Users/echolalie/Desktop/Sage-6.9.app/Contents/Resources/sage: No such file > or directory ? > /Applications/SageMath-7.1.app/Contents/Resources/sage/sage: cannot > determine SAGE_ROOT directory ?? Looks like a broken bash/sh script of some sort. "PS1" is the environment variable containing the shell prompt. The fact that the shell complains that "PS1: command not found" means that a script is trying to execute "PS1 ...". I would look for that string without a leading "$" (which would be needed for the shell to properly interpret it). Since this shows up right after the "last login" line, it appears this is in your startup sequence somewhere (see Volker's response). Was this the sage binary or the sage ".app"? HTH -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income When LuteFisk is outlawed, Only outlaws will have LuteFisk -- 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] No Output with the following Integral
On Mar 11, 2016, at 10:08 , Christopher Maness wrote: > > >> >> Did you build or install a pre-built Sage? Anything that looks sketchy in >> the system logs (open the Console app)? Are you using a notebook or >> terminal interface to sage? > > I have unpacked the binary over my old 6.6 installation. The console shows > nothing sketchy. I am running the notebook. I can try it out on the > terminal as well. > >> >> Another thought: start a fresh version of Sage in a Terminal window and see >> if that works. > > I reopened it, and now it is working in console and notebook(). —Weird Well the weirdness depends on what went on before (and what kind of history the "kernel" keeps. Having a history of GUI rejection I have rarely used the notebook interface. Did you try before in Terminal and get that failure? >> At this point, I have no idea what could be wrong… > > Should I try recompiling if this happens in the future? I forgot how to do > that. I don't know that recompiling would fix anything, but you could try. As for building, it is fairly simple (as long as nothing goes worng :-}). I just do "make" (with a "-j" factor to build in parallel; and if it breaks, take out the "-j", or cut down the number of threads). I would consider building in a separate location, in case of breakage - you would at least have a more-or-less working sage left over. Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- While creating wives, God promised men that good and obedient wives would be found in all corners of the world. Then He made the earth round. -- -- 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] No Output with the following Integral
On Mar 11, 2016, at 08:49 , Justin C. Walker wrote: > > On Mar 11, 2016, at 08:14 , Chris Maness wrote: > >> b=var('b') ; assume(b > 0) ; integrate(1/(x^2+b^2),x,-oo,oo) > > Sage version? OS version? Hardware? > > FWIW, I tried this on Sage 6.10, OS X 10.6.8 (Mac Pro). Of course, it would help if I mentioned that I did get output (pi/b). -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- Question 43: What if the hokey pokey really *is* what it’s all about? -- -- 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] No Output with the following Integral
On Mar 11, 2016, at 08:14 , Chris Maness wrote: > b=var('b') ; assume(b > 0) ; integrate(1/(x^2+b^2),x,-oo,oo) Sage version? OS version? Hardware? FWIW, I tried this on Sage 6.10, OS X 10.6.8 (Mac Pro). HTH -- Justin C. Walker Curmudgeon-at-large -- Network, n., Difference between work charged for and work done -- 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] TAB completion
Hi, In the distant past, I knew how to configure Sage to handle TAB completion this way: - one TAB: complete if unique prefix typed; else - second TAB: list all possible I have not been able to determine how to achieve this in recent versions: I always get a complete list on one TAB, and after searching the doc, I am lost in a twisty maze of passages, all looking strangely similar. Suggestions or clues welcome. Thanks! Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- If it weren't for carbon-14, I wouldn't date at all. --- -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] TAB completion
On Nov 5, 2015, at 18:02 , John H Palmieri wrote: > On Thursday, November 5, 2015 at 5:03:27 PM UTC-8, William wrote: >> >> On Thu, Nov 5, 2015 at 4:02 PM, John H Palmieri <jhpalm...@gmail.com >> > wrote: [snip] >> >> Thanks! This worked for Justin upon adding the line >> >> c.InteractiveShell.readline_parse_and_bind = ['tab:complete'] >> >> to the file >> >> .sage/ipython-4.0.0/profile_default/ipython_config.py >> >> William >> >> >> > Great! I'm glad it helped. Maybe we should document it somewhere. > Meanwhile, I found out about it by reading the file > ./sage/ipython-3.2.1/README (is that "./sage" or ".sage"?) It did; I'm back to where I was (at some point in the dim past). Documentation would be good. We wandered around the IPython docs for a while, and William ended up guessing at the proper incantation to get this to work. Thanks for the help! Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- While creating wives, God promised men that good and obedient wives would be found in all corners of the world. Then He made the earth round. -- -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Question about Casting over Finite Field
On Aug 9, 2015, at 13:31 , Juan Grados wrote: I have declared the finite Field K and the equation e. How I can cast the equation e to finite field K.? K=GF(2) e = 0==r1405 + 97557948918122409/154603142862411371*r1406 - 26113332388244438/463809428587234113*r1408 + 180996540766820643/154603142862411371*r1409 Does this help? K=GF(2) Kz.z=PolynomialRing(K) Qx.x=PolynomialRing(Rationals()) f=x^3-1 f1=Kz(f) Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income When LuteFisk is outlawed, Only outlaws will have LuteFisk -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] SageMathCloud questions: plots, init.sage, etc
On Jul 21, 2015, at 07:35 , Pierre wrote: Hi, I've been playing with the Jupyter notebook in sagemathcloud, it's very nice. I have a few questions: [snip] and tried showplot(my_plot, dpi= 1200) to get a larger image, but it doesn't work... any thoughts? This is probably obvious, but: is the above literally what you used, or is the space after = creeping in during message creation? HTH -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income Experience is what you get when you don't get what you want. -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: Create modules
On Jul 1, 2015, at 10:23 , Amarjeet Kapoor wrote: i am facing a problem related to this that is I am not able to use functions inside my sage script defined in modules made by me with more than one function defined in it but it works in interactive mode unable to understand problem. (Minimal) Examples are useful to help us determine the problem you are seeing. In addition, Sage version and platform (hardware, OS version) help. HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- I want to die, peacefully in my sleep, like my grandfather; not screaming in terror, like his passengers. -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Sage 5.9
Hello, On May 22, 2015, at 9:09 , jlassi ines jlassi.ines@gmail.com wrote: Hello, Please I have a big problem with Sage 5.9, I used to work on this version and all my codes are online and I never found a problem except that this week I can not enter there and it shows me this error message. Le serveur est temporairement incapable de traiter votre demande en raison de temps d'arrêt de maintenance ou des problèmes de capacité. S'il vous plaît réessayer plus tard. This is not a problem with sage. The message, loosely translated, means that the server hosting Sage 5.9 is out of service temporarily. Try again later. HTH Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- -- They said it couldn't be done, but sometimes, it doesn't work out that way. - Casey Stengel -- -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: sage 6.6: error building r
On Apr 22, 2015, at 14:35 , David Einstein wrote: I too am having this problem. I recently upgraded Xcode to 6.3.1 and am running OSX 10.10.3. I have homebrew, but have removed it and all the /usr/local stuff from my environment. Also I am using the sage built gcc (I set SAGE_INSTALL_GCC=yes), which should (in theory) moot the homebrew issue. If I cd into the directory sage/local/var/tmp/sage/build/r-3.1.2.p0/src/src/library/grDevices ...grDevices/src?? and go into the sage shell, and do [snip] However, if I do /usr/bin/gcc -std=gnu99 -I../../../../include -DNDEBUG -I../../../include -I../../../../src/include -DHAVE_CONFIG_H -I../../../../src/extra/zlib -fPIC -g -O2 -c devQuartz.c -o devQuartz.o (using the system compiler instead of the sage built compiler) it compiles. Unfortunately, this does not help the big picture, as I am loath to compile R with a different compiler than everything else. I see the same thing (but with the 6.3 command-line tools). Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds Men are from Earth. Women are from Earth. Deal with 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 post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] sage 6.6: error building r
On Apr 15, 2015, at 08:18 , Volker Braun wrote: It picks up homebrew stuff and breaks. Remove homebrew from your PATH (and/or other environment variables) and try again FWIW, I see the same issue on OS X, 10.10.3, with Xcode 6.1 and possibly updated command-line tools. On that system I don't have homebrew or other installs to muddy the water. Justin On Wednesday, April 15, 2015 at 5:15:03 PM UTC+2, Buck Evan wrote: Here's the same error under -j1, in case it helps: http://paste.pound-python.org/show/CSFQbBf722doPeyrXxJi/ On Wednesday, April 15, 2015 at 10:58:42 AM UTC-4, Jeroen Demeyer wrote: On 2015-04-15 16:46, Buck Evan wrote: Full details are here: http://paste.pound-python.org/show/9mou1V2L8kJPOg3ztHcb/ I can't help with this problem, but as a general rule, it's much easier to debug a build with make -j1. -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout. -- Justin C. Walker Curmudgeon-at-large Director Institute for the Absorption of Federal Funds 186,000 Miles per Second Not just a good idea: it's the law! -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] sage 6.6: error building r
On Apr 15, 2015, at 13:29 , Volker Braun wrote: Whats the output of gcc --version (the Xcode one?) % gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.3.0 Thread model: posix -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- Like the ski resort full of girls hunting for husbands and husbands hunting for girls, the situation is not as symmetrical as it might seem. - Alan MacKay -- -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Working with polynomials (or at least trying to)
On Apr 7, 2015, at 09:49 , absinthe wrote: Justin I believe that you are right so I will try to re-implement it. Thanks for your help. David, thank you as well. The answer I believe is somewhere close to both of you. Some sips of absinthe will help me get this through or at least provide the illusion that I did it ;) Be careful with that. As it is written: absinthe makes the heart go wander... -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- I'm beginning to like the cut of his jibberish. --- -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Working with polynomials (or at least trying to)
On Apr 5, 2015, at 11:39 , absinthe wrote: Dear all, thanks for your replies. In general I don't want others to do the dirty work for me, so I ask the actual problem. Anyway, since I have to give more details to get the actual help... The case is that I want to implement NTRU (see here for details http://en.wikipedia.org/wiki/NTRUEncrypt) As you see, I have to construct polynomials, similar to the ones I was refering to and compute their inverse... So it is definite that I'm going to have zero-divisors and the like... Thanks for your clarifications. I think the issue at the root of your problem is that Sage's algorithm implementing foo.inverse_mod(bar) uses the Euclidean algorithm (use the ? or ?? operators as follows to see details: sage: foo.inverse_mod? or foo.inverse_mod??) I believe that the Euclidean algorithm assumes the underlying ring is Euclidean (which in turns requires no zero divisors). In the Hoffstein-et al article, they mention using an easy modification of said algorithm to compute inverses, an exercise, I suppose, for the really-interested reader. HTH Justin -- Justin C. Walker Curmudgeon-at-large Director Institute for the Absorption of Federal Funds 186,000 Miles per Second Not just a good idea: it's the law! -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Working with polynomials (or at least trying to)
On Apr 5, 2015, at 10:58 , absinthe wrote: Sorry for the leftovers I copied and pasted... With the following I manage to create polynomials whose coefficients are in Z_32 and they are modulo x^N-1. [snip] My coefficients belong to a finite field of size 32 I can invert etc, but the coeffs are not in Z_32 as I would like to. Thanks for your help Maybe it would help us if you could explain what you are trying to accomplish. Why, in particular, do you want coefficients in Z/32Z. This is not a field, and it contains zero-divisors, which can certainly interfere with obtaining inverses. Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- Question 43: What if the hokey pokey really *is* what it’s all about? -- -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Working with polynomials (or at least trying to)
On Apr 4, 2015, at 17:29 , absinthe wrote: Dear all, I'm trying to work with polynomials modulo x^N-1 whose coefficients belong to Z_p (If it helps p is a power of a prime). I know that I'm doing something wrong, but I cannot figure out what so any help is welcome. Answered, possibly, on sage-devel... -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- My wife 'n kids 'n dogs are gone, I can't get Jesus on the phone, But Ol' Milwaukee's Best is my best friend. --- -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] load or attach problem
On Dec 12, 2014, at 10:19 , Bob Gman wrote: It seems too simple to be a problem for me, but: sage: attach /home/bgman/Documents/Python/prob2_1_29.sage File ipython-input-9-9a83b54672c9, line 1 attach /home/bgman/Documents/Python/prob2_1_29.sage and sage: load /home/bgman/Documents/Python/prob2_1_29.sage File ipython-input-8-1ab93d7e50c7, line 1 load /home/bgman/Documents/Python/prob2_1_29.sage both of these result in a SyntaxError: invalid syntax message. Any ideas what I'm doing wrong? A couple of things to help us and you: 1. What version of Sage, OS; and what hardware? 2. Sage provides some rudimentary help using TAB, ? and ??. The results for the latter two can sometimes be perplexing, but the idea is that TAB: type the first part of a command, or a word that you think will be one, and then hit TAB (this is for the terminal version; something similar works for the notebook). You get a list of commands that match the string you typed (as a leading substring). If you type a full command name followed by . and then TAB, you get subcommands associated to that command/name. ?, ?? preceding or following a command or name (and then RETURN) will show you documentation for the command from the file where it is defined. In the second instance, you also get the code. In either case, you get the path to the file where the code lives. The perplexing part will become obvious as you use this. In answer to your questions, ?attach will explain what the problem is. HTH Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- Question 43: What if the hokey pokey really *is* what it’s all about? -- -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: bug with variety(): order of the variables seem to matter!
On May 2, 2013, at 06:50 , Volker Braun wrote: Both produce the same output (J.vector_space_dimension() == 8) in Sage-5.10.beta1. Odd. I get the same result as the OP with both 5.10-b0 and -b1. This is on Mac OS X, 10.6.8. Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- 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 http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: problem building 5.4.1 on macosx 10.8.2
Hi, Greg, On Dec 13, 2012, at 10:39 , Greg Minshall wrote: i still don't know what causes this problem. but, i created a new user on my machine with a very bland environment, and ran the build from there. while the build is not yet finished, PARI/GP built just fine. Everything in the compile line looks fine, so something in your environment... (as i said, i *did* move fink, etc., out of the way, but the build still failed. so, something else in my environment, perhaps -- though they shouldn't -- C_INCLUDE_PATH or CPLUS_INCLUDE_PATH were being searched before the -Idirs.) may be getting in the way. In addition to making your PATH plain vanilla, you might try nullifying a few of those _PATH variables. I don't know that this problem has been seen before, but let us know if that clears it up with your login. What apps use the above variables? Thanks, Justin PS: on my 10.8.2 system, I have the stock readline includes in place, and they did not cause a problem with the build. -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income --- Nobody knows the trouble I've been --- -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Jacobi sn
A quick follow-up: On Nov 19, 2012, at 23:25 , Justin C. Walker wrote: On Nov 19, 2012, at 22:36 , Jan Groenewald wrote: [snip] Using Mac OS X, 10.6.8. Sage 4.8 has maxima 5.23 (maxima-5.23.2.p3.spkg); 5.0-beta2 has maxima 5.26. [snip] sage: n(jacobi('sn',u+2*I*elliptic_kc(1-m),m)) With sage-5.0-beta2, the above is duplicated, except that the last line has been going (and going, and ...) for several minutes now, with no signs of abating. It's adding small increments of memory, second by second... This blew chunks, after a fairly long delay, as follows: Traceback (most recent call last): File ipython console, line 1, in module File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/misc/functional.py, line 1275, in numerical_approx return x._numerical_approx(prec) File expression.pyx, line 4082, in sage.symbolic.expression.Expression._numerical_approx (sage/symbolic/expression.cpp:18084) File expression.pyx, line 841, in sage.symbolic.expression.Expression._convert (sage/symbolic/expression.cpp:5122) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/functions/special.py, line 510, in _evalf_ return parent(maxima(%s, numer%self._maxima_init_evaled_(*args))) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/rings/complex_field.py, line 277, in __call__ return Parent.__call__(self, x) File parent.pyx, line 1058, in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7886) File coerce_maps.pyx, line 82, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/structure/coerce_maps.c:3344) File coerce_maps.pyx, line 77, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/structure/coerce_maps.c:3247) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/rings/complex_field.py, line 305, in _element_constructor_ return x._complex_mpfr_field_( self ) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/interfaces/maxima_abstract.py, line 1291, in _complex_mpfr_field_ return C(self._sage_()) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/rings/complex_field.py, line 277, in __call__ return Parent.__call__(self, x) File parent.pyx, line 1058, in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7886) File coerce_maps.pyx, line 82, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/structure/coerce_maps.c:3344) File coerce_maps.pyx, line 77, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/structure/coerce_maps.c:3247) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/rings/complex_field.py, line 305, in _element_constructor_ return x._complex_mpfr_field_( self ) File expression.pyx, line 933, in sage.symbolic.expression.Expression._complex_mpfr_field_ (sage/symbolic/expression.cpp:5556) File expression.pyx, line 792, in sage.symbolic.expression.Expression._eval_self (sage/symbolic/expression.cpp:4969) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/functions/special.py, line 510, in _evalf_ return parent(maxima(%s, numer%self._maxima_init_evaled_(*args))) File lazy_import.pyx, line 199, in sage.misc.lazy_import.LazyImport.__call__ (sage/misc/lazy_import.c:1509) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/interfaces/interface.py, line 198, in __call__ return cls(self, x, name=name) File /Users/Sage/sage-5.0.beta2/local/lib/python2.7/site-packages/sage/interfaces/interface.py, line 625, in __init__ raise TypeError, x TypeError: ECL says: Memory limit reached. Please jump to an outer pointer, quit program and enlarge the memory limits before executing the program again. Justin -- Justin C. Walker, Curmudgeon-at-Large () The ASCII Ribbon Campaign /\ Help Cure HTML Email -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Jacobi sn
On Nov 19, 2012, at 22:36 , Jan Groenewald wrote: On 16 September 2012 08:08, Robert Dodier robert.dod...@gmail.com wrote: On 2012-09-16, kcrisman kcris...@gmail.com wrote: Using Mac OS X, 10.6.8. Sage 4.8 has maxima 5.23 (maxima-5.23.2.p3.spkg); 5.0-beta2 has maxima 5.26. Maxima 5.24.0 http://maxima.sourceforge.net using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (a.k.a. GCL) Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) u : 1.2 $ (%i2) m : 0.5 $ (%i3) jacobi_sn (u, m); (%o3) 0.88771548861928 (%i4) jacobi_sn (u + 2 * %i * elliptic_kc (1 - m), m); (%o4)0.88771548861928 - 1.7301614091485549E-15 %i I get (maxima 5.26) 0.88771548861928 - 1.7919528880467195e-15 %i Either that was a regression specifric to maxima 5.26, or this problem is particular to the sage interface to maxima. Original problem: 0 jan@muizenberg:/var/autofs/misc/home/jan$sage -- | Sage Version 5.4, Release Date: 2012-11-09 | | Type notebook() for the browser-based notebook interface.| | Type help() for help.| -- sage: u=1.2 sage: m=0.5 sage: jacobi('sn',u,m) 0.887715488619 sage: jacobi('sn',u+2*I*elliptic_kc(1-m),m) jacobi_sn(1.2 + 3.7081493546*I, 0.500) sage: n(jacobi('sn',u+2*I*elliptic_kc(1-m),m)) With sage-5.0-beta2, the above is duplicated, except that the last line has been going (and going, and ...) for several minutes now, with no signs of abating. It's adding small increments of memory, second by second... Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- Like the ski resort full of girls hunting for husbands and husbands hunting for girls, the situation is not as symmetrical as it might seem. - Alan MacKay -- -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Unable to run Macaulay2 through SAGE
On Nov 3, 2012, at 19:24 , Peter Horn wrote: And the plot thickens. I found all files called macaulay2.py in the application Sage-5.3-OSX-64bit-10.6.app and removed the -e from line 180. If you remove the -e (see my comment earlier in the thread) you may need to remove the stuff that follows, since that is supposed to be a command to the M2 program. Can't say for sure what it does, but it might cause problems when the line is given to a shell. However, I don't think the -e is the problem. I restarted my computer. Now I get the error: TypeError: Unable to start macaulay2 because the command 'M2 --no-debug --no-readline --silent 'ZZ#{Standard,Core#private dictionary#InputPrompt} = lineno - _EGAS_ : ;ZZ#{Standard,Core#private dictionary#InputContinuationPrompt} = lineno - _EGAS_ : ;printWidth = 0;lineNumber = 10^9;'' failed. Now I'm confused! I wonder if the other stuff (ZZ#{Standard etc) means anything. It surely does; I suspect it has something to do with 3+3. I tried what you mentioned in your original post, and it worked (Mac OS X, 10.6.8). Perhaps the M2 interpreter is not in your default path. I know you can run it from the command line, but you don't say how you do that. Try this (assuming you don't have it set up similarly): make a symbolic link from your M2 interpreter to /usr/bin (you may have to do this as root, e.g., with sudo): $ ln -s /path/to/M2 /usr/bin/M2 and then try again. I don't think you have to restart your browser, but if it doesn't work, do that and try again. HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- If it weren't for carbon-14, I wouldn't date at all. --- -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Unable to run Macaulay2 through SAGE
On Nov 2, 2012, at 09:25 , Jason Grout wrote: On 11/2/12 11:17 AM, Peter Horn wrote: Hi. I am on Mac OS 10.8.2 with Sage 5.3 OS X 64bit 10.6 and Macaulay2 1.4. I can run Macaulay2 commands from the Sage command line, but I cannot run %macaulay2 3+3 in the notebook interface. I get the same (?) error as Fredrik: Traceback (click to the left of this block for traceback) ... RuntimeError: Unable to start macaulay2 because the command 'M2 --no-debug --no-readline --silent -e 'ZZ#{Standard,Core#private dictionary#InputPrompt} = lineno - _EGAS_ : ;ZZ#{Standard,Core#private dictionary#InputContinuationPrompt} = lineno - _EGAS_ : ;printWidth = 0;lineNumber = 10^9;'' failed. If I type the command M2 --no-debug --no-readline --silent -e in the terminal, it doesn't work. But if I leave off the -e it does work. Any idea what is causing this mess up? I really need M2 to function in the Sage notebook. That command comes from line 180 in devel/sage/interfaces/macaulay2.py: http://hg.sagemath.org/sage-main/file/d06cf4b2215d/sage/interfaces/macaulay2.py#l180 I have no idea what that -e does, but if you want to try removing it, that's where you'd change something. For the record, the -e allows the user to run Macaulay2 to evaluate an expression that follows the -e on the command-line. You'd have to evaluate that blather to figure out what the (bleep) was intended. Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds If you're not confused, You're not paying attention -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Array of Arrays
On Oct 1, 2012, at 00:28 , Santanu Sarkar wrote: I have written the following: T=[0]*2 S=[] l=2 for i in range(l): T[0]=i T[1]=i+1 print T S.append(T) Now S becomes [[1, 2], [1, 2]] instead of [[0,1],[1,2]]. In my situation, length l of S is not fixed. Is there any method to solve this problem? This is the result of a feature of the Python language. 'T' is the name of an array, and acts like its address, so as you append T to S, you are continually reusing that same address. When you update the elements in T (by, e.g., T[0]=i), you are modifying the content of T. To avoid this, you could do something like S=[] l=2 for i in range(l): print T S.append([i,i+1]) For details, check the python documentation, in particular, the difference between copy() and deepcopy(). Maybe start here: http://docs.python.org/library/copy.html#copy.deepcopy HTH Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- -- They said it couldn't be done, but sometimes, it doesn't work out that way. - Casey Stengel -- -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Sagenb.org
On Sep 14, 2012, at 14:53 , Dan Aldrich wrote: Haven't been able to access sagenb.org or .com for over a day. Is this a long term outage? William reported a relatively short-term outage at UW.edu in the math department server area that appears to be over now. Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- -- They said it couldn't be done, but sometimes, it doesn't work out that way. - Casey Stengel -- -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] sage only runs as root
On Jul 9, 2012, at 12:47 , Yuri Delanghe wrote: When I try to run sage, I get ImportError: dlopen(/Applications/sage/local/lib/python2.7/site-packages/sage/matrix/matrix_mod2_dense.so, 2): Symbol not found: _iconv Referenced from: /Applications/sage/local/lib/libgd.2.dylib Expected in: /opt/local/lib/libiconv.2.dylib in /Applications/sage/local/lib/libgd.2.dylib Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. It appears that this is a flawed installation. We'd need a bit more information to be sure we're giving you the right help: - OS/version (e.g. Mac OS X, 10.6.8) - Hardware, CPU (e.g, MacBook Pro, Core i7) One thing that is odd is that your installation is relying on libs in /opt (indicating MacPorts is installed). This is the problem, I think. Did you download a binary or build from source? Justin -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income Weaseling out of things is what separates us from the animals. Well, except the weasel. - Homer J Simpson -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] sage only runs as root
On Jul 9, 2012, at 13:54 , Yuri Delanghe wrote: OS X 10.7.4 MacBook Pro Intel Core i7 MacPorts is indeed installed, I installed sage from binary. Oh, yuck. Looks like the binary was built on a system with MacPorts installed, which renders it kind of useless, I think. From this outcome: On Monday, July 9, 2012 1:47:04 PM UTC-6, Yuri Delanghe wrote: When I try to run sage, I get ImportError: dlopen(/Applications/sage/local/lib/python2.7/site-packages/sage/matrix/matrix_mod2_dense.so, 2): Symbol not found: _iconv Referenced from: /Applications/sage/local/lib/libgd.2.dylib Expected in: /opt/local/lib/libiconv.2.dylib in /Applications/sage/local/lib/libgd.2.dylib recovery may be as simple as making a symlink from /usr/lib/libiconv.2.dylib to /opt/local/lib/libiconv.2.dylib. if that doesn't work, you could build from source. You'll need Xcode 4.2/3 installed to do this. Or wait until someone builds a good Mac OS X binary. Justin -- Justin C. Walker Curmudgeon-at-large Director Institute for the Absorption of Federal Funds 186,000 Miles per Second Not just a good idea: it's the law! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] multivariate polynomial factorization over GF(2)
On Jun 18, 2012, at 00:30 , barbules wrote: sage-5.0-linux-64bit gives segmentation fault on the following:sage: sage: R.t,x=GF(2)['t,x'] g=t^16*x + t^10*x + t^9*x + t^6*x + t^5 + t*x + x^2 g.factor(proof=False) Just to add to the noise, I get the same failure with 5.0 on Mac OS X, 10.6.8 (Dual 6-core Xeons) and 10.7.4 (4-core Core i7): --- RuntimeError Traceback (most recent call last) /SandBox/Justin/sb/Sage/ipython console in module() /Users/Sage/sage-5.0/local/lib/python2.7/site-packages/sage/rings/polynomial/multi_polynomial_libsingular.so in sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular.factor (sage/rings/polynomial/multi_polynomial_libsingular.cpp:24885)() RuntimeError: Segmentation fault --- [works out to line 3931 in the .pyx file] Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- Question 43: What if the hokey pokey really *is* what it’s all about? -- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Crash report: integral of ln(1+4/5*sin(x)) crashes Maxima and Sage
On Jun 7, 2012, at 19:10 , kcrisman wrote: Is Maxima used as a library, or used with pexpect? I've lost track. For this kind of thing, should be library. Is that a 'no'? -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income Experience is what you get when you don't get what you want. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Crash report: integral of ln(1+4/5*sin(x)) crashes Maxima and Sage
On Jun 8, 2012, at 02:07 , Volker Braun wrote: This is definitely a maxima bug, it seems that it goes into a recursion in binary-ecl/sin.c. Did you open a ticket for it? Why don't I see 'maxima' in the crash logs? And why don't I see 'maxima' starting up as a subprocess? Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds If you're not confused, You're not paying attention -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Crash report: integral of ln(1+4/5*sin(x)) crashes Maxima and Sage
On Jun 7, 2012, at 14:13 , Benjamin Jones wrote: On Mac OS X 10.6.8 intel core i7 and sage-5.0 (also sage-5.1.beta2) I can crash sage (and Maxima) by evaluating: sage: integrate(ln(1+4/5*sin(x)), x, -3.1415, 3.1415) [snip] Has anyone seen similar crashes using sage-5.0 or earlier? I have duplicated this with Sage 5.0 on Mac OS X 10.6.8 (Dual 6-core Xeons) and 10.7.4 (quad core Core i7). With 4.8 (10.6.8), sage just echos back what I typed in (no process is spawned while this is being processed). The first version that gives the crash (rather than just echoing) seems to be 5.0-b3 (b2 just echos). HTH Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income --- Nobody knows the trouble I've been --- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Crash report: integral of ln(1+4/5*sin(x)) crashes Maxima and Sage
On Jun 7, 2012, at 17:52 , kcrisman wrote: On Thursday, June 7, 2012 8:21:01 PM UTC-4, Justin C. Walker wrote: On Jun 7, 2012, at 14:13 , Benjamin Jones wrote: On Mac OS X 10.6.8 intel core i7 and sage-5.0 (also sage-5.1.beta2) I can crash sage (and Maxima) by evaluating: sage: integrate(ln(1+4/5*sin(x)), x, -3.1415, 3.1415) [snip] Has anyone seen similar crashes using sage-5.0 or earlier? I have duplicated this with Sage 5.0 on Mac OS X 10.6.8 (Dual 6-core Xeons) and 10.7.4 (quad core Core i7). With 4.8 (10.6.8), sage just echos back what I typed in (no process is spawned while this is being processed). The first version that gives the crash (rather than just echoing) seems to be 5.0-b3 (b2 just echos). Hmm, strange, as one Maxima upgrade was in b2 but the other was in b8. I'm not sure that this is maxima: - the only crash reports I see are for python - I don't see maxima starting up when this is tested - I do see a python stack-athon The latter is what seems to be behind the crash (the segfault is attributed to python in the error message). Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- If it weren't for carbon-14, I wouldn't date at all. --- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Crash report: integral of ln(1+4/5*sin(x)) crashes Maxima and Sage
On Jun 7, 2012, at 18:04 , Justin C. Walker wrote: On Jun 7, 2012, at 17:52 , kcrisman wrote: On Thursday, June 7, 2012 8:21:01 PM UTC-4, Justin C. Walker wrote: On Jun 7, 2012, at 14:13 , Benjamin Jones wrote: On Mac OS X 10.6.8 intel core i7 and sage-5.0 (also sage-5.1.beta2) I can crash sage (and Maxima) by evaluating: sage: integrate(ln(1+4/5*sin(x)), x, -3.1415, 3.1415) [snip] Has anyone seen similar crashes using sage-5.0 or earlier? I have duplicated this with Sage 5.0 on Mac OS X 10.6.8 (Dual 6-core Xeons) and 10.7.4 (quad core Core i7). With 4.8 (10.6.8), sage just echos back what I typed in (no process is spawned while this is being processed). The first version that gives the crash (rather than just echoing) seems to be 5.0-b3 (b2 just echos). Hmm, strange, as one Maxima upgrade was in b2 but the other was in b8. I'm not sure that this is maxima: - the only crash reports I see are for python - I don't see maxima starting up when this is tested - I do see a python stack-athon The latter is what seems to be behind the crash (the segfault is attributed to python in the error message). FWIW, running sage -gdb (5.0-b3), I get this after the crash: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0008 0x00010c91b867 in ecl_bds_unwind () (gdb) Is Maxima used as a library, or used with pexpect? I've lost track. Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] How to fix the path generated by tmp_filename() ?
On 4 Jun, 2012, at 08:17 AM, Volker Braun wrote: Posix stipulates that multiple successive slashes are considered to be the same as one slash. Its still ugly and not portable beyond posix, though. And it's been part of Unix since day one. On 6/4/12 8:50 AM, Ruslan Kiianchuk wrote: However it was a surprise for me that extra slashes in the path are alright. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds Men are from Earth. Women are from Earth. Deal with it. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Sage 5.0 crashing, is unusable
On May 16, 2012, at 16:11 , Jim Clark wrote: Hello sage team. I have just downloaded and installed Sage 5.0 on my system: Mac OS X 10.6.8 I downloaded sage-5.0-OSX-64bit-10.6-x86_64-Darwin.dmg. It keeps crashing and is unusable. FWIW, I built from source (same OS, different hardware: both Dual 6-core Xeon and 4-core Core i7 processors), and your snippet runs w/o problems for me. I'll try downloading the .dmg and see what happens with that. Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds If you're not confused, You're not paying attention -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] polynomial division
On Apr 22, 2012, at 13:23 , Michael Beeson wrote: Sage version 4.6.1 (I know it's old, new one is downloading now, but I don't think this is a version problem.) Given: polynomial f in x with some letters for the coefficients, and polynomial psi of lower degree in x with constant coefficients. Wanted: remainder of f on division by psi as polynomials in x, with coefficients involving the letters in f. Problem: Sage treats f as a polynomial in many variables and I can't convince it to treat it as a polynomial in x only and perform the division (or pseudo division). You might try starting with this (unverified): R.N,p,r,m,l = PolynomialRing(QQ) K=R.fraction_field() S.x=PolynomialRing(K) HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- My wife 'n kids 'n dogs are gone, I can't get Jesus on the phone, But Ol' Milwaukee's Best is my best friend. --- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Will Sage software draw graphs of algebraic equations?
On Apr 19, 2012, at 16:50 , Minh Nguyen wrote: Hi, On Fri, Apr 20, 2012 at 6:54 AM, Theodore J Sheskin t.shes...@csuohio.edu wrote: Will Sage software draw graphs of algebraic equations? I am making up the equations. I do not have data which I want to plot. I do not have data to which I want to fit a curve. I plan to paste the graphs into a Word 2007 document. Let us know if this is not what you are looking for, or if there is something unclear about what I've said. sage: f=x^2-6 sage: f.show() sage: plot(f,x,[-3,3]) Depending on what system you are using, you should be able to save the resulting plot as a .PDF file and then include/paste it into a word-processing doc. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds Men are from Earth. Women are from Earth. Deal with it. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Define function in GF(q)
On Apr 6, 2012, at 06:54 , ArturZ wrote: First of all I say that these are my first steps in SAGE. Welcome to Sage. Enjoy the ride! I want to define a function f(x,y), where x,y in GF(q), q=2^3 and next check all possible values of this function (for all x,y in GF(q)). Details about the function in attachment. Could you give me some advices how can I do it in SAGE? Any help will be highly appreciated. You can treat the finite field GF(q) as an iterator (a python construct), so this should work for you: F=GF(q) for e in F: for g in F: print f(e,g) HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] instance returns False after modifying file
On Mar 24, 2012, at 11:31 , tvn wrote: This seems to be a very weird behavior. After modifying a file, all instantiated instances V of classes C in the file are no longer correct (i.e. instance(V,C) returns false). Here's a simple example illustrating the problem [snip] Now go back to the file t1.py, make any modification , e.g. enter a space and delete it ... save the file sage: isinstance(t,Test) False here it's no longer correct While it seems wrong/weird, I think it actually makes sense. The root of problem is that the explanation lies in the implementation details. The following is a rough sketch; the details are, well, details :-} To test whether something is an instance of a type, you have to have a specification for the type. When you modified the file that you previously attached, it was reloaded, and that action removed the old version and added the new version. The way types are maintained internally causes the isinstance() check to fail because, in fact, the old instance is not of the new type. Keep in mind that the internal code is not going to try to figure out that a newly-loaded version is different from the previous version; it's just out with the old; in with the new. When I'm in the middle of the Edit/Reload/Debug loop, I have to make sure I redefine all the gizmos associated with the files I'm editing. Otherwise, strange and wondrous things happen. If I have this wrong, I think someone will speak up, but that's Truth as I understand it. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income When LuteFisk is outlawed, Only outlaws will have LuteFisk -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Matrix Characteristic Polynomial
On Mar 20, 2012, at 13:08 , Simon King wrote: Justin C. Walker justin at mac.com writes: sage: M.=min[TAB] min minimal_polynomialminpoly min_cyclesminimize min_symbolic minimize_constrained I guess the = is a typo, isn't it? It should be M, . and then the tab key. Thanks for catching that. No idea where it came from, since I copy/pasted that from a Sage session in a terminal window...it's still there, without the '='. However, and this is a quiz for preparser() experts, I do get the above results with M.=min[TAB] (sage-4.8). WT...? Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Matrix Characteristic Polynomial
On Mar 18, 2012, at 05:31 , firebird wrote: Thanks Justin. My mistake... minimal_polynomial is what is required. Graham And, in case you didn't know about these features of sage/python: - if you have an object, procedure, ..., you can find out more about what is available for said item by following it with a '.' and the TAB character. The system will print out a list of possible methods associated to the name. If you follow the '.' with the (possible) beginning of a name, then the TAB, you get a list of methods with that beginning: sage: M.=min[TAB] min minimal_polynomialminpoly min_cyclesminimize min_symbolic minimize_constrained sage: M.=min - similarly, if you follow a name with one or two '?'s, you get the documentation associated with that name (one '?') or both doc and implementation (if in python) (two '?'s). A caveat: once you type []s or ()s, the parser won't be able to determine the object in question (dynamic typing), so this doesn't work: sage: MS=MatrixSpace(ZZ,2,2) sage: MS.random_element().min[TAB] (yields no output). HTH Justin PS: to be clear, in the above, [TAB] means press the tab key (brackets are not typed). -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income Experience is what you get when you don't get what you want. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Matrix Characteristic Polynomial
On Mar 17, 2012, at 13:13 , firebird wrote: I was expecting x^2 as the characteristic polynomial. What's gone wrong? I believe that the characteristic polynomial of a matrix, M, is given as det(\lambda I-M) or something similar. In your case (a 12x12 matirx), you should expect a polynomial of degree 12. Perhaps you were thinking of the minimal polynomial? HTH Justin -- Justin C. Walker Curmudgeon-at-large Director Institute for the Absorption of Federal Funds 186,000 Miles per Second Not just a good idea: it's the law! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Overriding default browser
On 5 Mar, 2012, at 09:38 AM, Jim Clark wrote: On Mar 5, 2012, at 8:57 AM, John H Palmieri wrote: This works for me: export SAGE_BROWSER='open -a /Applications/Firefox.app' (Change this to the path to the firefox app, if necessary.) The documentation apparently needs to be fixed, at least as far as OS X is concerned. Oh, a few more things, in case people are reading this who aren't that familiar with the Terminal app and bash: you can give the command export SAGE_BROWSER='open -a /Applications/Firefox.app' at the shell prompt and it will have immediate effect, so you can test it right away. Second, if you instead change .bashrc, you should start a new terminal window for the changes to take effect. You can test whether it has done anything by typing 'export' and seeing if SAGE_BROWSER is listed with the appropriate setting. Thanks for your help, John. It turned out to be more complicated, trying to understand the deep mysteries of the bash shell and how Terminal is configured on my system. In spite of what the man page for bash says, Terminal seems to be ignoring the .bashrc file in my home directory, and instead reads .bash_profile. I was finally able to get Sage and notebook() to start Firefox by putting the export SAGE_BROWSER line into .bash_profile, not .bashrc. To clarify this, I believe that the man page says that .bash_profile is checked for a login shell, and that .bashrc is checked for a non-login, interactive shell. I'm not at a 10.6 system right now to verify that, but it is the case on 10.7, and I have my profile/rc set up with that assumption on both 10.6 and 10.7. Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income --- Nobody knows the trouble I've been --- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Overriding default browser
On 5 Mar, 2012, at 13:09 PM, Jim Clark wrote: On Mar 5, 2012, at 12:49 PM, Justin C. Walker wrote: To clarify this, I believe that the man page says that .bash_profile is checked for a login shell, and that .bashrc is checked for a non-login, interactive shell. I'm not at a 10.6 system right now to verify that, but it is the case on 10.7, and I have my profile/rc set up with that assumption on both 10.6 and 10.7. Thanks, Mr. Curmudgeon ;-) That is indeed what I read in the man page, but my intuitive sense is that Terminal should open a non-login, interactive shell — after all, I am able to start entering UNIX commands interactively, and the shell does not prompt for a login. But when I actually try it out, the contents of .bashrc have no effect in Terminal/bash, but the contents of .bash_profile are processed. I conclude that something about a deeper understanding of Mac OS X and/or UNIX is eluding me. I think your confusion is in the use of the term login. Terminal starts a login shell for each window/tab that it opens, so your intuition needs a little polishing :-} Think of Terminal as a glorified xterm, in that all the windows belong to one Terminal, rather than each xterm owning one window. Login shells are represented (e.g., in 'ps' listings) with a leading - in the command name; and if you check a full ps listing, you'll see that the parent shell in each window (i.e., for each (pseudo)tty) has such a tag, and typically, no others do. HTH Justin -- Justin C. Walker Curmudgeon-at-large -- Network, n., Difference between work charged for and work done -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] How remove attached file?
On 5 Mar, 2012, at 15:23 PM, Nils Bruin wrote: On Mar 5, 2:10 pm, Raniere Gaia Silva r.gaia...@gmail.com wrote: Hello all, I'm starting use Sage last week and I'm having some problem to remove some file from attached_files list. Below you can see what I try. -- | Sage Version 4.8, Release Date: 2012-01-20 | | Type notebook() for the GUI, and license() for information.| -- sage: load test.sage Hello world sage: sage: attach test.sage Hello world sage: Hello world 1 sage: attached_files() ['/attached/file/path/test.sage'] try sage: detach(attached_files()[0]) sage: attached_files() [] If you type attached_files?? you'll see the actual code and note that the value returned by attached_files is just a copy of the internal data, so deleting something from it has no effect. It's worth filing a bug on this. The documentation is a bit, um, imprecise: Type ``attached_files()`` for a list of all currently attached files. You can remove files from this list to stop them from being watched. Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income --- Nobody knows the trouble I've been --- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: How remove attached file?
On Mar 5, 2012, at 22:54 , Nils Bruin wrote: On Mar 5, 3:40 pm, Justin C. Walker jus...@mac.com wrote: It's worth filing a bug on this. The documentation is a bit, um, imprecise: Type ``attached_files()`` for a list of all currently attached files. You can remove files from this list to stop them from being watched. http://trac.sagemath.org/sage_trac/ticket/12633 ready for review. Thanks! I gave it a positive review. Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] factoring in a number field
On Feb 26, 2012, at 17:13 , William Stein wrote: On Sunday, February 26, 2012, Joel B. Mohler j...@kiwistrawberry.us wrote: On Feb 26, 7:35 pm, Joel B. Mohler j...@kiwistrawberry.us wrote: After having been a heavy sage user for several years, I now have virtually not touched it for several more years. Returning now on a lark, I'm feeling rather confused because I'd think the following would obviously work. My goal is to factor a bunch of Gaussian integers. sage: K.I=QuadraticField(-1) sage: ((I+1)*(I+1)).factor() --- AttributeErrorTraceback (most recent call last) /home/joel/.sagelocalrc.py in module() AttributeError: 'sage.rings.number_field.number_field_element_quadr' object has no attribute 'factor' Ok, to answer myself, this appears to work in the cell server on the sage front page, but does not work in my old install of version 4.3. Therefore I conclude that I need to upgrade. However, I'm still quite baffled that this didn't work in sage 4.3. Um, isn't sage 4.3 ancient? December, 2009. I think this was fixed in 4.5.3. Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- I'm beginning to like the cut of his jibberish. --- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Question about QuadraticForm polynomial method.
On Feb 24, 2012, at 08:04 , Jacob Hicks wrote: When I run: sage: q = QuadraticForm(ZZ,2,[3,2,5]) sage: q.polynomial() 6*x0^2 + 4*x0*x1 + 10*x1^2 I would expect to get half of this result, which is the quadratic form as a polynomial. The doc tests say this is what the behavior should be, but I don't understand why. Is this actually the desired behavior and if so what am I misunderstanding? You're in the middle of a centuries-old debate, stemming from the Lagrange-Gauss smackdown (or maybe it was Legendre; it's been a while). The issue stems from the desire to equate quadratic forms and symmetric matrices (b*x0*x1 vs b/2*x0*x1+b/2*x1*x0). If you don't use the above, you end up having to deal with the ring ZZ[1/2]. This is discussed in the Wikipedia article on quadratic forms (and in other places, like Cassels' Rational Quadratic Forms). HTH Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income --- Nobody knows the trouble I've been --- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Question about QuadraticForm polynomial method.
On Feb 24, 2012, at 09:49 , John Cremona wrote: I don't think that is the issue here: you are referring to the debate between using a,2*b,c as coefficeints rather than a,b,c. But here *all* the coefficients have been doubled. I haven't looked at this code in detail yet, but I'm pretty sure that this is the issue. Cassels (I think) remarks that the two approaches are equivalent by noting that 2f and f are equivalent. Of course, I'm going from memory here. Gotta go catch a plane :-} Justin -- Justin C. Walker Curmudgeon at Large Director Institute for the Enhancement of the Director's Income -- Build a man a fire and he'll be warm for a night. Set a man on fire and he'll be warm for the rest of his life. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] sage -t has changed recently ?
On Feb 21, 2012, at 21:36 , John H Palmieri wrote: On Tuesday, February 21, 2012 5:24:22 AM UTC-8, Laurent Claessens wrote: Hi all ! I want sage -t to test my docstrings. [snip] Is it normal ? With older versions of sage the same docstring was working. Are you sure it was working before? Is it possible that with earlier versions of Sage, the docstring was being ignored completely, and thus the file was claiming to pass doctests because it wasn't actually running any? FWIW, I just tried this with the .sage file appended below. With 4.7, I got what might be expected (the correct expected/got error). With 5.0-b3-gcc, I got a somewhat confusing message saying Fred wasn't defined. It seems that the docstring testing worked at one point, while now, it doesn't. I'm doing this on Mac OS X, 10.7.1. Justin == def Fred(n): Examples:: sage: Fred(273) 12 print n == -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: matrix help
On Dec 3, 2011, at 02:50 , Chappman wrote: Is it possible to make an entry in Q[i,j] equal to a entry in U[i,j]? I have to have the two functions separately for each matrix though just like my code above Definitely. You can do it roughly as your code snippets show, or there are built-in short-cuts depending on what you want to do. Here are a few: Q=deepcopy(U) # This copies everything Note that 1. if you use this inside a procedure, you have to import the name: from copy import deepcopy 2. if you use copy instead of deepcopy, you don't get what you might expect. Try this: Q=matrix(ZZ,6) U=Q U[1,1]=4 Q The reason is that more complex data types are copied by pointer (for speed); the deepcopy procedure actually makes a full copy, while copy just copies structure pointers, while the data values are shared between the copies. To find out more about using Sage as a program/scripting language, check out the documentation on http://sagemath.org and http://www.python.org. Python is the language used by Sage. Also, use expressions like matrix? to get on-line documentation on procedure/function/variable names; ?? gets both documentation and the code implementing the call (if possible; some built-in python things may not have code viewable). Finally, the TAB after a string will try to show you known names that begin with the string. If you type the full name of a class, followed by ., and then TAB, you will get a list of associated method, class variable, and instance variable names. You can then use the ? to find out more. HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- My wife 'n kids 'n dogs are gone, I can't get Jesus on the phone, But Ol' Milwaukee's Best is my best friend. --- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: matrix help
On Dec 3, 2011, at 15:21 , Jason Grout wrote: On 12/3/11 4:16 PM, Justin C. Walker wrote: Q=matrix(ZZ,6) U=Q U[1,1]=4 Q Uh, I thought you wanted to use copy, which actually does copy the matrix: sage: Q=matrix(ZZ,2) sage: U=copy(Q) sage: U[1,1]=4 sage: U [0 0] [0 4] sage: Q [0 0] [0 0] You don't need to use deepcopy to copy a matrix. Yup; that was part of my learning curve for the day (see my sage-devel reply). Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage problem
On Nov 27, 2011, at 12:24 , Artur wrote: John Tell me yet is possible to count rank of my curve over rational field I was try E.mwrank bound method EllipticCurve_rational_field.mwrank of Elliptic Curve defined by y^2 It might help you to know the following: The TAB key can provide information about what possibilities are available from the string that you have just typed. As you have discovered, if you type a partial string, TAB will give you completions that are known. TAB following the . will give you names of both methods (functions) and variables associated to the name you have just typed, as for E.. Not all names will work for a given instance; what will actually work depends on exactly how the instance was created (Sage is based on Python [see below], which has a good object structure underlying it). Also, once you have a complete name, ? and ?? will give you documentation (?) or documentation + implementation (if possible) (??) for the name. Try typing E?, once you have defined E as an elliptic curve (you get the same with Elliptic_Curcve?). It may also be helpful to review documentation on Python, and its class structures (see the documentation link on http://www.python.org). Python is the underlying language for both the Sage system and the Sage interpreter, so understanding that will help you to understand Sage. We don't put all of the possible details for all of Sage's functions and classes into documentation at any one time; Sage is dynamically changing, and to do so would be a lot of work. Instead, we rely on the above on-line mechanisms to supplement the documentation. A fair amount is automatically culled from source and put into various manuals (cf the documentation available in your installation, or on-line at http://sagemath.org). Finally (if you've gotten this far), your experience with mwrank shows that this is a method, i.e., a function/procedure. Typing E.mwrank? will give you information about how to use it. HTH Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income When LuteFisk is outlawed, Only outlaws will have LuteFisk -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: [sage-notebook] Using slashes in downloading worksheets
[Replying only to sage-devel, since I'm not subscribed to sage-notebook] On Nov 19, 2011, at 14:31 , William Stein wrote: On Saturday, November 19, 2011, kcrisman kcris...@gmail.com wrote: You might want to try making a worksheet with a title with a slash. Like And/or the best worksheet and then downloading it as a .sws file. At least on a Mac, it creates a folder called And and the worksheet (with the correct title) is or the best worksheet.sws Somehow I feel like this should be a bug, but I'm not sure. First, someone has to reproduce it, of course! What web browser ate you using? Saving the file is the responsibility of the browser - maybe is is a browser bug?We could have a workaround where we do not allow slashes in the name, or convert them to underscores (say). *Most* Mac-derived apps will replace / with : for file lookup or creation. This is done (I think) by one of the system frameworks. E.g., this happens in Safari. For such apps, in the File dialog, if the first character you type is /, you get a drop-down dialog to enter a directory name (/.../.../...); the same thing happens if you type CMD-G. In this dialog, you can type a relative path as well (./...) Other browsers might not use the same frameworks, and build their own... Justin -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income Weaseling out of things is what separates us from the animals. Well, except the weasel. - Homer J Simpson -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] problems launching Sage on a Mac
I think the second error occurs due to the first: there is no notebook server listening for requests from your browser. I think you get th iPhone, therefore I am. On Nov 15, 2011, at 15:48, Raymond N. Greenwell mat...@gmail.com wrote: Although I got Sage working on my home computer (an iMac), I haven't had similar success at my office (a similar iMac). When I launch Sage, the following messages appear in Terminal on my Mac: Last login: Tue Nov 15 09:16:27 on console '/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/'/ sage --notebook dhcp-147-4-180-138:~ matrngnew$ '/Applications/Sage-4.7.2- OSX-64bit-10.6.app/Contents/Resources/sage/'/sage --notebook /Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/ local/bin/sage-sage: line 597: sage-notebook: command not found dhcp-147-4-180-138:~ matrngnew$ In Sage, when I selected New Worksheet (whether under the File menu or the Server menu), I got the following message in my browser: Oops! Google Chrome could not connect to localhost:8000 What am I doing wrong? Thanks! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] problems launching Sage on a Mac
Oops. Premature transmission. Sorry about that. To continue: I'm not sure why you get that failure; I can't reproduce it here. I'll try to get it to happen, but I hope someone on the list will leap in with the answer. Justin iPhone, therefore I am. On Nov 15, 2011, at 15:48, Raymond N. Greenwell mat...@gmail.com wrote: Although I got Sage working on my home computer (an iMac), I haven't had similar success at my office (a similar iMac). When I launch Sage, the following messages appear in Terminal on my Mac: Last login: Tue Nov 15 09:16:27 on console '/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/'/ sage --notebook dhcp-147-4-180-138:~ matrngnew$ '/Applications/Sage-4.7.2- OSX-64bit-10.6.app/Contents/Resources/sage/'/sage --notebook /Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/ local/bin/sage-sage: line 597: sage-notebook: command not found dhcp-147-4-180-138:~ matrngnew$ In Sage, when I selected New Worksheet (whether under the File menu or the Server menu), I got the following message in my browser: Oops! Google Chrome could not connect to localhost:8000 What am I doing wrong? Thanks! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Emacs support for visiting spkg files?
On Nov 14, 2011, at 11:09 , Michael Orlitzky wrote: On 11/14/11 08:34, Keshav Kini wrote: Will this work for uncompressed SPKGs too? Not without modification. If you can't rely on the extension to tell you what's in the file, you'll have to use something else. Check the source for 'tar'; at least as it runs on Mac OS X, it doesn't need extensions. Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage 4.7 on OS X Leopard
On Nov 13, 2011, at 09:59 , Bill Janssen wrote: You're implying that 4.7.1 or 4.7.2 fix this issue in some way? I don't see anything in the release notes which would cause me to suspect that. Unless I'm still too caffeine-deprived, I think the issue is that you are one of the first to try the Mac OS X 10.5 binary release of 4.7, at least with something involving this particular library. There is no (i.e., doesn't seem to be an) issue for those who are using either a different binary or have built from source (at least, your primordial example works for me) (once I change my name to wjanssen :-}). This doesn't seem to be a problem in Sage that needs to be fixed. It seems to be a problem with one (or perhaps more than one) binary that has been built improperly. If someone else doesn't verify this first, I'll try to get to it tomorrow. Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's income --- -- They said it couldn't be done, but sometimes, it doesn't work out that way. - Casey Stengel -- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org