[sage-support] Re: please test SageTeX 3.0

2015-08-26 Thread Dan Drake
...and, if anyone is in the mood to review a SageTeX-related ticket, here's an easy one about documentation: http://trac.sagemath.org/ticket/14343 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving

[sage-support] please test SageTeX 3.0

2015-08-26 Thread Dan Drake
Hello all, I'm emailing sage-support and sage-devel about the new version of SageTeX that I just finished. It includes one small backwards-incompatible change, so I think it's best that I tell everyone about this. The incompatible change is with sageexample and sagecommandline environments: previ

Re: [sage-support] how to create a long dict?

2015-05-19 Thread Dan Drake
s there exist other way to do this? Hope to get your help, thanks > very much. Try just "dict()": dict(zip(keys, values)) {(0, 1): 0, (1, 2): 1} Here's how zip() works, if you don't already know: https://docs.python.org/3.5/library/functions.html#zip Dan -- --- Da

Re: [sage-support] latex and hold parameter

2015-01-20 Thread Dan Drake
n = 5 \end{sagesilent} blah blah $120/\sage{n}! = 120/\sage{factorial(n)} = \sage{120/factorial(n)}$. Another option here is to use a symbolic variable: \begin{sagesilent} n = var('n') \end{sagesilent} blah blah $120/\sage{factorial(n)}$ which,

Re: [sage-support] Joint Mathematics Meetings in San Antonio

2015-01-07 Thread Dan Drake
On Tue, 06 Jan 2015 at 12:39PM -0800, William Stein wrote: > Who is also going to the Joint Mathematics Meetings in San Antonio? I'll be there. Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- -- You received this message because you are subscribed to the Google Group

Re: [sage-support] use load('f.sage') but with namespacing like 'import'

2015-01-02 Thread Dan Drake
On Wed, 31 Dec 2014 at 01:33PM -0600, Dan Drake wrote: > In a .sage script, I can use load('f.sage') to load all the stuff from > f.sage. But all the functions and definitions in f.sage get put into > the same namespace as the script. I'd like to get the kind of > name

[sage-support] use load('f.sage') but with namespacing like 'import'

2014-12-31 Thread Dan Drake
e, and this caused confusing behavior when it should have caused a "variable referenced before assignment" error.) I think I can manually preparse the loaded .sage file and then import that, but I'm wondering if there's a better way. Thanks, Dan -- --- Dan Drake - www.math

[sage-support] sage-mode installation finished, but isn't working?

2014-12-29 Thread Dan Drake
seemingly nothing else. I see something about sage-load.el and that wasn't generated, or I can't find it. Any ideas? Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- -- You received this message because you are subscribed to the Google Groups "sage-support&qu

Re: [sage-support] Solving system of equations

2014-12-02 Thread Dan Drake
x27;m doing wrong. In addition the problems Jim pointed out, "sys" is already defined as a Python module. You can overwrite that definition, as he suggested, but be aware that you won't be able to import and use the sys module then. (See https://docs.python.org/2.7/library/sys.html for wh

Re: [sage-support] Re: export 3D three.js graphics?

2014-12-02 Thread Dan Drake
. In my web page (a reveal.js slide deck, actually), do: load three.js library start a three.js scene, using data saved from plot3d The key part is getting the scene data from Sage in a format that I can save and hand off to three.js. Dan -- --- Dan Drake - www.math.wisc.edu/~ddr

Re: [sage-support] export 3D three.js graphics?

2014-11-28 Thread Dan Drake
-10,10),(y,-10,10), threejs=true) Are those using three.js? We are using Javascript stuff and not Java anymore, right? I guess what I'm really asking for is how to export whatever Javascript code we generate to make the 3D graphics so that I can use it elsewhere. Dan -- --- Dan Drake

[sage-support] export 3D three.js graphics?

2014-11-28 Thread Dan Drake
Hi, If I have a 2D plot, I can save it to an image file and then include that image on any web page I like. Is there a corresponding way to export a three.js plot so that I can include it on a web page? Thanks, Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- -- You received

Re: [sage-support] Re: [sage-devel] How to input a large system of equations?

2014-09-18 Thread Dan Drake
my Sage code folder and I use it. I guess I was holding a hammer and it made his problem look like a nail... Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] Re: [sage-devel] How to input a large system of equations?

2014-09-18 Thread Dan Drake
rn reduce(lambda x, y: f(x), range(n), arg) So the above list is [applyntimes(f, x, n) for n in range(whatever)] Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] using ? with sage-mode locks up emacs

2014-06-26 Thread Dan Drake
On Wed, 25 Jun 2014 at 10:06AM -0600, Ivan Andrus wrote: > Upgrade to 0.11. At least I don’t have any problems, and there was a > similar issue fixed. That seems to have fixed it. Thanks! Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: D

Re: [sage-support] Solving equation

2014-05-28 Thread Dan Drake
it? Try find_root(). You want a root of d(y) - 1, so try: find_root(lambda x: d(x) -1, -1, 1) which gives 0.6667. Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] Fwd: Sagemath cloud

2014-04-08 Thread Dan Drake
plot (x^(8/3), (x,-5,5)) Try plot(sign(x)*abs(x)^(8/3),-1,1) That's in the documentation for plot -- do plot? and look for the above construction (but with 1/3, not 8/3). Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] Re: Sagetex issues

2014-03-19 Thread Dan Drake
ike to include some documentation of this. What exactly did you use for the user command to run Sage? Thanks, Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] Re: Sagetex issues

2014-03-18 Thread Dan Drake
er Commands. I used the first entry and called it "Run Sage". For the command, you can use sage %.sagetex.sage Hit OK to save that. Then after you typeset your document, use Alt-Shift-F1 to run Sage. On my computer, this creates the files in the correct directory. Does that h

Re: [sage-support] Re: Sagetex issues

2014-03-12 Thread Dan Drake
s so > they're not empty). Ahh, that's very helpful. It looks like the Sage app on OS X is using your home directory as the working directory. So we need to look at how that works and get it to use the right directory. Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] Re: Sagetex issues

2014-03-12 Thread Dan Drake
That leads me to think that the script you're using to run Sage on that file isn't working in the correct directory. Are you using TeXShop? How are you trying to run Sage? You might try putting "pwd" into that script by itself on a line; that will print the directory the

Re: [sage-support] Re: Sagetex issues

2014-03-11 Thread Dan Drake
e doesn't exist. When you typeset example.tex, what files get created? (As for your other message, I think it's very unlikely that there's a permissions issue.) Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] Re: Sagetex issues

2014-03-10 Thread Dan Drake
hat your TeX is using a version of sagetex.sty that is generating example.sage, not example.sagetex.sage. What do you get if you do kpsewhich sagetex.sty in a terminal? Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

[sage-support] [ali.moha...@stu.yazd.ac.ir: a question about SAGE software]

2014-02-13 Thread Dan Drake
ware? > would you please send me commands which help me to export a file from SAGE > to MatLab software. > ???I appreciate if you hint me. > > Thanks in advance???. > > ???Sincerely Yours???, > ???Ali Mohades??? - End forwarded message - -- --- D

Re: [sage-support] Sagetex and TeXShop

2013-12-05 Thread Dan Drake
tores the scripts that run Sage (I think it defaults to ~/Library/TeXShop/Engines/Inactive/Sage), but you can edit that script -- there should be something in it that runs Sage on "something.sage" (where "something" is perhaps $1 or other shell stuff); you should cha

Re: [sage-support] Re: Inability to compute limit.

2013-11-08 Thread Dan Drake
On Fri, 08 Nov 2013 at 01:41PM -0800, kcrisman wrote: > Dan, I'm on a train with horrible internet - can you open a ticket, post to > the Maxima list, etc.? Thanks! This is now http://trac.sagemath.org/ticket/15386. Dan -- --- Dan Drake - www.math.wisc.

Re: [sage-support] Re: Inability to compute limit.

2013-11-08 Thread Dan Drake
d by the n^2 in the denominator. Not sure what it's doing to find the limit. Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] makestatic.py doesn't work?

2013-10-03 Thread Dan Drake
ted. I'll take a look at your errors and see if I can figure out what's going on. Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] sagetex and beamer

2013-09-13 Thread Dan Drake
ing TeX and convert to some XML dialect!) Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] sagetex and beamer

2013-09-12 Thread Dan Drake
There may be a limit to how far you can push the Beamer/SageTeX combo. Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] Another infelicity in sagetex : example.tex does not run with tikz prts uncommented (they did...)

2013-08-16 Thread Dan Drake
a problem, it's almost always with TeX or at the Python level in Sage. Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.asc Description: Digital signature

Re: [sage-support] Re: Problem with sagetex with a large file (many sage calculations)

2013-05-04 Thread Dan Drake
ith a testcase. I'd like to see what is happening. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Re: sage is filling up my directory with files

2013-04-24 Thread Dan Drake
gt; > on. (I attached code contained in a file called 'threshold.sage'. I get > > the same behavior from other attached files.) These files remain in the > > directory after i quit Sage. Could someone tell me what's wrong? > > > > Thanks, > > Dave > > > Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Re: No DPI information in PNG files (parametric_plot3d)

2013-04-24 Thread Dan Drake
the image different DPI values. The computer cannot, without input from me, figure out what I want. Discussions like this are part of why I would like vector-based output for our 3D plotting. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description

Re: [sage-support] Re: No DPI information in PNG files (parametric_plot3d)

2013-04-24 Thread Dan Drake
that I don't know about, but it seems like this is something we can't solve for the user. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Short and localized measurement units names. Also typesetting

2013-04-24 Thread Dan Drake
SIunitx to add the units. I'd like to see units typeset themselves with SIunitx, but I'm not sure how that would work with the notebook and MathJax. Dan References: [1] http://ctan.org/pkg/siunitx -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] No DPI information in PNG files (parametric_plot3d)

2013-04-23 Thread Dan Drake
lib. > P.S. Note that i have to specify [png] when invoking sageplot, > otherwise SageTeX will fall back to png, but then claim that png is > unsupported (bullshit) SageTeX uses the ifpdf package to detect PDF output; that message is printed whenever \ifpdf is false. But that package doesn

Re: [sage-support] Re: Sage+TeX for Windows dummies

2013-04-22 Thread Dan Drake
> updated Sage documentation for what to do if you are on Windows. I looked it over. In any case, some instructions for Texworks users would be nice. I like the idea of "standardizing" on Texworks, which works on Windows, Mac, and Linux. Dan -- --- Dan Drake - http://

Re: [sage-support] Re: Sage+TeX for Windows dummies

2013-04-19 Thread Dan Drake
the Texworks site that they have some kind of scripting functionality -- what you want is something that automatically runs Sage after typesetting. If they don't have that, you can always open a terminal and run Sage there whenever you change any of the SageTeX commands in your do

Re: [sage-support] Re: Sage+TeX for Windows dummies

2013-04-18 Thread Dan Drake
d options for Windows. For now, the notebook is definitely the way to go. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] generate latex from symbolic expression without \;

2013-04-09 Thread Dan Drake
havior is avoided, so that the above will return "2 > x" instead? I would also like to remove those hard-coded spaces. It makes SageTeX much less pleasant, since the output looks weird. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Re: Help with SageTeX

2013-04-07 Thread Dan Drake
On Sun, 07 Apr 2013 at 01:34AM -0700, Gabriel wrote: > Any ideas on this problem of double questions marks "??" in LaTeX with > SageTeX ? If you're seeing those, you haven't run Sage on the generated .sagetex.sage file, or haven't typeset again after doing so. Dan

Re: [sage-support] Re: Fwd: sage.maa.org

2013-04-04 Thread Dan Drake
ic word" which only PREP > participants got. The version of Sage on that server predates the OpenID stuff, so AFAIK the only way to get an account is knowing the magic word. I do plan on upgrading the version of Sage after the semester is over, so I'll make a note to disable OpenID logins wh

Re: [sage-support] Re: sagetex documentation

2013-03-09 Thread Dan Drake
On Sat, 09 Mar 2013 at 06:06PM +, John Cremona wrote: > Thanks, I have that file too: so the only error is in the > documentation which gives the wrong path to the file. This is now http://trac.sagemath.org/sage_trac/ticket/14264 . Dan -- --- Dan Drake - http://math.pugetsou

Re: [sage-support] Re: sagetex documentation

2013-03-09 Thread Dan Drake
p a compiler! I do notice that the share/doc/sagetex directory doesn't have the example.tex file, which it should. I'll try to fix that and change the documentation. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Re: Sagetex

2013-02-24 Thread Dan Drake
that > has the new sagetex.sty, but I don't know how to do that and the web > wasn't helping, so I'll update texlive instead.) A simpler fix is to simply delete or rename the sagetex.sty in the TeXLive installation. But upgrading works too. :) Glad to hear it's fix

Re: [sage-support] Re: Sagetex

2013-02-22 Thread Dan Drake
Your TeX installation might somehow be using an older .sty file (despite your symlink, which seems like it should work fine) and generating a bad .sage file. That's my best guess right now. Inside Sage, you could do import sagetex sagetex.__version__ and see if it matches what t

Re: [sage-support] Re: sagetex difficulty

2012-12-15 Thread Dan Drake
r{f(#1,#2)}} (With "foo" and "f" changed to something meaningful.) Then you do \foo{1}{2} in your document and it's easier to understand. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Re: sagetex difficulty

2012-12-15 Thread Dan Drake
mpletely oblivious to the difference between \sage{r"\nabla"} and \sage{"\nabla"}, so you can always use the former to get your intended behavior. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Matrix question

2012-11-26 Thread Dan Drake
not sure if that's a "logical reason", but most people seem to like it. Should we have a "strict inverse" that throws a ValueError -- or ZeroDivisionError -- when the parent isn't a field? (That's not rhetorical or sarcastic, I really wonder if anyone thinks that's a good idea.) Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] java style output format

2012-11-26 Thread Dan Drake
re's a nice way to overload some of that stuff and define your own outputs, so that "exp()" becomes "Math.exp()", just like latex(sin(x)) is \sin\left(x\right) Thoughts? Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

[sage-support] graphics_array only shows axes labels on final plot

2012-10-17 Thread Dan Drake
afternoon and I'd like it to work!) Thanks, Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Re: can't exponentiate an mpmath mpf number

2012-10-16 Thread Dan Drake
gt; sage: a = mpmath.mpf('-0.0712959029907420240935') > sage: a.exp > -56 > sage: type(a.exp) > > > Yup, can't call that. Good find. This is now http://trac.sagemath.org/sage_trac/ticket/13608. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

[sage-support] can't exponentiate an mpmath mpf number

2012-10-16 Thread Dan Drake
exp(-0.0712959029907420240935) 0.93118631054266770709 And if I wrap the mpf in "N( )" to explicitly convert to a regular Sage float, it works. I'm using 5.3 on 64-bit Linux. Is this expected behavior, or a bug? Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] SEGV in libatlas.so

2012-10-12 Thread Dan Drake
binary, etc. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] Re: why I can use "sage-slide.tex" to generate math output

2012-10-03 Thread Dan Drake
' That is really strange. SageTeX's Python module doesn't have any openout function, and according to "hg grep", it never did. There's no openout anywhere in the Sage source. I have no idea where that came from. Upgrading to the most recent version of Sage sounds like the best thing to do here. Dan -- --- Dan Drake - http://math.pugetsound.edu/~ddrake --- signature.asc Description: Digital signature

Re: [sage-support] What's wrong with this comparison?

2012-09-12 Thread Dan Drake
use comparing floating-point numbers is tricky. As I understand, none of those numbers can be expressed exactly as a float, so internally Python/Sage/whatever is using an approximation -- and after the addition, the error is big enough to return False. Dan -- --- Dan Drake - http:/

Re: [sage-support] Package to Draw Geometrical Figures

2012-07-07 Thread Dan Drake
ething like tkz-euclide, but within sage. I don't know if this is exactly what you want, but do investigate GeoGebra (http://geogebra.org). With it, you can make very nice Euclidean figures and export them to HTML, TikZ, and others. It's not part of Sage, but it works very well and I like it

[sage-support] change the default viewpoint in a 3D plot?

2012-06-28 Thread Dan Drake
7;hsv') p2=plot3d(f(x,y),(x,-5,5),(y,-5,5)) p3=plot(g(x),(x,-5,5)) p4=plot(h(y),(y,-5,5)) show(p1,figsize=3) show(p2,figsize=3) Do we have a way of specifying a viewpoint when doing a 3d plot? Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] sagetex difficulty

2012-06-12 Thread Dan Drake
14:44 sage-5.0-sagetex.sty > lrwxrwxrwx 1 root root20 Jun 12 14:44 sagetex.sty -> sage-5.0-sagetex.sty > > and all is well! Using the symlink and a versioned filename is a nice idea. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] sagetex difficulty

2012-06-12 Thread Dan Drake
ex.sty" or whatever. You could also update to a newer version of TeXLive, but getting rid of the old sagetex.sty solves the immediate problem. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] sagetex difficulty

2012-06-11 Thread Dan Drake
twice) I get a dvi > file which looks perfect. That tells me that LaTeX must be getting confused somewhere. We just need to figure out what wrong version of sagetex.sty it is finding. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Crash report: integral of ln(1+4/5*sin(x)) crashes Maxima and Sage

2012-06-07 Thread Dan Drake
eta13 sage-5.0.beta14 sage-5.0.rc0 sage-5.0.rc1 sage-5.0 sage-5.1.beta0 sage-5.1.beta1 sage-5.1.beta2 So we should look between 5.0.beta2 and 5.0.beta3, I guess. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Re: maximization on interval

2012-05-25 Thread Dan Drake
2607, so maybe I'll try to track down what is happening. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Re: maximization on interval

2012-05-24 Thread Dan Drake
to work. (Although see http://trac.sagemath.org/sage_trac/ticket/2607 for other problems with that function.) Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Still no way to use interact in published notebooks?

2012-05-07 Thread Dan Drake
h.sagemath.org. > (2) I am hiring somebody (thanks to NSF funding) right now to create > a system for using @interact completely outside of the Sage notebook. I think Jason Grout and his students beat you to that. :) Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Array and Loop in Sagetex

2012-05-03 Thread Dan Drake
spect_ratio =1)} > \end{document} You are putting Python code into your TeX document, but TeX will typeset it, not ask Python/Sage to process it. It looks like you want TeX to do the loop. Try the forloop package: http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/ Dan -- --- D

Re: [sage-support] sagetex question

2012-03-30 Thread Dan Drake
. :) I'll look over the cell server docs and think about this. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Separation of constants.

2012-03-28 Thread Dan Drake
nts, then the ", 0" element of the list (coefficient of x^0) is the constant coefficient of "foo". Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Re: sage server in OS 10.6

2012-03-16 Thread Dan Drake
? Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] sage server in OS 10.6

2012-03-06 Thread Dan Drake
27;t need to be remotely accessible, but since the users will be given a full Python process in those accounts, they can do most things that an interactive login would give them, since they can use os.system() and the subprocess module, can fork bomb the server, and so on. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Question about plot

2012-02-23 Thread Dan Drake
On Fri, 24 Feb 2012 at 01:39AM -0200, Juan Grados wrote: > I need smooth line, (interpolation the points), line(vec) plot line without > smoth If a regression line is good enough, see: http://markmail.org/message/lipt7edldscsaaqb (another one of Jason's messages!) Dan -- ---

Re: [sage-support] Re: polygon graph is too small (wrong scale)

2012-02-23 Thread Dan Drake
ative, at least in terms of aspect ratio. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Re: Windows 7, Virtualbox, can't connect to sage server with Chrome

2012-02-13 Thread Dan Drake
On Mon, 13 Feb 2012 at 05:42AM -0600, Jason Grout wrote: > On 2/13/12 2:42 AM, emil wrote: > > When creating it I studied the docs by > >Dan Drake and Jason Grout in detail and tried to implement it the best > >I could. > > I should point out that I'm also n

Re: [sage-support] Re: jmol won't display

2012-02-07 Thread Dan Drake
On Mon, 06 Feb 2012 at 08:58PM -0600, Jason Grout wrote: > Do you have the Sun Java installed, or the Iced Tea thing? IIRC, > you need to install the sun jdk; the iced tea version won't work. I > know others have dealt with java issues with jmol on ubuntu before > (for example

Re: [sage-support] Re: Problem with sagetex with a large file (many sage calculations)

2012-01-20 Thread Dan Drake
;t know much more than that right now. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Problem with sagetex with a large file (many sage calculations)

2012-01-19 Thread Dan Drake
ations. > This confuses me, however, because I thought sage did each calculation > separately. It does them separately, but all in one session. I'm not sure what is happening here. Can you provide a minimal example that demonstrates the problem? I've never seen anything like th

Re: [sage-support] Two problems using SageTex on Sage 4.7.2

2012-01-19 Thread Dan Drake
y hasn't been maintained very much, and I'm actually a bit surprised it even works. I've made a note to fix this, which won't happen in the immediate future because of travel and the start of classes. But it's on my lsit. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] sage build FAIL - An error occurred while installing patch-2.5.9.p2

2012-01-19 Thread Dan Drake
Having patch fail to build sounds truly strange. Is your source tarball corrupt? I'd check the md5sum and make sure it's correct. If it is, then something bizarre is happening so that patch isn't building addext.o, argmatch.o, and those other files. Dan -- --- Dan Dr

Re: [sage-support] "sagesilent" block in a "newcommand" macro

2012-01-16 Thread Dan Drake
acro just pulls in a string, it doesn't run latex() on its argument -- see the "Make Sage write your LaTeX for you" and the "Plotting functions in TikZ with SageTeX" sections of the example file: https://bitbucket.org/ddrake/sagetex/src/tip/example.tex (and the typese

Re: [sage-support] Animation with sage?

2012-01-12 Thread Dan Drake
about it? What trouble did you have trying to install it? Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] issue with combining sub lists into a list

2012-01-09 Thread Dan Drake
add that this is really just a Python question, so if you're searching for answers, using "python" will help. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Help with plotting from Mathematica using SageTeX

2011-12-25 Thread Dan Drake
.getcwd()) > \end{sagesilent} > \includegraphics{example3} > \end{document} What do those commands give you when run inside a Sage session? When I try that on the only computer I can access with Mathematica, the second command fails. Your error message indicates that Mathematica is so

Re: [sage-support] Does 'plot' evaluate the function at random points?

2011-12-14 Thread Dan Drake
tive_recursion=0) > total_plot += plot(dGT, marker=".",xmin=2000, xmax=2010, color='black', > plot_points=2010-2000+1, adaptive_recursion=0) > > total_plot.show(figsize=[10,4], gridlines='minor') Perhaps you want list_plot, since you are plotting discrete points? Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Re: transforming numbers into lists.

2011-12-08 Thread Dan Drake
ased on Python, anything you can do in Python, you can do in Sage. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

[sage-support] why is this contour integral wrong?

2011-12-04 Thread Dan Drake
ough you need to ask for full simplification: with f[z_] = (z-I)*(z-1)^2/(z-(-1/2-I/3)), you get In[5]:= Integrate[f[2*Exp[I*t]] * 2*I*Exp[I*t], {t, 0, 2*Pi}]//FullSimplify 181 19 I Out[5]= (--- + ) Pi 27 36 Any ideas? Dan -- --- Dan Drake - http:/

Re: [sage-support] SageTeX, Numpy, and Verbatim Environment

2011-12-03 Thread Dan Drake
trices. Here's one way to do it; perhaps someone else knows a better way: \sage{matrix(npmatrix.tolist())} Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Tests for convergence

2011-11-29 Thread Dan Drake
On Tue, 29 Nov 2011 at 10:58PM +, Ignas Anikevicius wrote: > I like sage a lot and I want to use it a lot as well, but sometimes my > ignorance of the abilities of SAGE does not let me do that. I was > wondering if there is any way of running convergence tests for > infinite series in SAGE? We

Re: [sage-support] Re: unsupported operand type(s) ????????

2011-11-16 Thread Dan Drake
On Wed, 16 Nov 2011 at 03:02AM -0800, Simon King wrote: > [1,1] in Python (thus, also in Sage) is a list. Lists can't be added > or subtracted. Lists can be added, but addition of lists is concatenation -- not at all what the OP wants. Dan -- --- Dan Drake - http://mathsci.

Re: [sage-support] R code into Sagemath code

2011-11-07 Thread Dan Drake
way to do that summation: just write sum(probs.y[y] * probs.z[z] for z in [1..(y-1)] for y in [2..6]) (Not tested; you may need to reverse the "for y" and "for z" bits.) I would recommend reading up on basic Python programming, which would cover loops and so on. Dan -

Re: [sage-support] Creating Arrays in sage, and then writing a programme which refers back to the array and uses it.

2011-10-31 Thread Dan Drake
to entries in the array) >end; > end; It looks like you're just reassigning total_prob again and again. Is that what you want? Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Bessel Contour Plot problem

2011-10-17 Thread Dan Drake
ou have both "fill=false" and "fill=False". The usual Python boolean False is spelled with a capital F, so I'm guessing Sage/Python is confused since you are giving it two different values for "fill". Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Sagetex fails to interpret input

2011-10-11 Thread Dan Drake
you need to make TeX ignore that file. I would rename or delete the old sagetex.sty and use the above command to make sure that TeX is finding the sagetex.sty that comes with your current version of Sage. Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

Re: [sage-support] Re: integral of exp(-x^2)*cos(x) from -pi to pi is complex?

2011-10-08 Thread Dan Drake
eal_part(), erf(pi - 1/2*I).imag_part()) work. We need to work on the numerical approximation stuff for the error function! Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

[sage-support] integral of exp(-x^2)*cos(x) from -pi to pi is complex?

2011-10-07 Thread Dan Drake
omplains: sage: (integrate(exp(-x^2)*cos(x),(x,-pi,pi))/pi).abs().n() ...same error. Meanwhile: sage: numerical_integral(exp(-x^2)*cos(x), (-pi,pi)) (1.3804038617166086, 1.5567746861731315e-14) I'm guessing this is a Maxima problem. Any ideas what's going on? Dan -- -

Re: [sage-support] sagetex

2011-10-05 Thread Dan Drake
on of sagetex.sty included with your TeX distribution, instead of the current version of sagetex.sty from Sage. If you do kpsewhich sagetex.sty is it the file you got from your Sage installation, or something in the TeXLive directories? If it's from TeXLive, I would delete it or ren

Re: [sage-support] Re: why doesn't [lambda x: bessel_J(n, x) for n in [0,1]] work?

2011-10-04 Thread Dan Drake
On Wed, 05 Oct 2011 at 12:40AM -0500, Jason Grout wrote: > On 10/4/11 11:14 PM, Mike Hansen wrote: > >On Tue, Oct 4, 2011 at 9:09 PM, Dan Drake wrote: > >>It seems unreasonably annoying to plot a bunch of Bessel functions > >>together. How can I work around this? &g

[sage-support] why doesn't [lambda x: bessel_J(n, x) for n in [0,1]] work?

2011-10-04 Thread Dan Drake
list comprehension work? Why does the lambda function seem to wait until n has its last value? Something like [sin(n*x) for n in range(5)] works as expected. It seems unreasonably annoying to plot a bunch of Bessel functions together. How can I work around this? Dan -- --- Dan Drake -

Re: [sage-support] Re: notes on creating HTML5 video with Sage's animate()

2011-09-23 Thread Dan Drake
p://sagenb.org/home/pub/3222 Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature

[sage-support] notes on creating HTML5 video with Sage's animate()

2011-09-21 Thread Dan Drake
e videos I made: http://klee.kaist.ac.kr/wave.webm http://klee.kaist.ac.kr/wave.mp4 The thick green plot is the shape of a plucked string, and the red and blue plots are the traveling waves you get with d'Alembert's solution to the wave equation.) Dan -- --- Dan Drake - http:/

  1   2   3   4   >