...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
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
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
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,
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
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
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
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
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
. 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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
ing TeX and convert to some
XML dialect!)
Dan
--
--- Dan Drake
- www.math.wisc.edu/~ddrake/
---
signature.asc
Description: Digital signature
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
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
ith a testcase. I'd like to see what is
happening.
Dan
--
--- Dan Drake
- http://math.pugetsound.edu/~ddrake
---
signature.asc
Description: Digital signature
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
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
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
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
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
> 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://
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
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
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
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
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
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
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
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
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
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
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
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'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
afternoon and I'd like it to work!)
Thanks,
Dan
--
--- Dan Drake
- http://math.pugetsound.edu/~ddrake
---
signature.asc
Description: Digital signature
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
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
binary,
etc.
Dan
--
--- Dan Drake
- http://math.pugetsound.edu/~ddrake
---
signature.asc
Description: Digital signature
'
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
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:/
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
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
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
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
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
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
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
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
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
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
. :) 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
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
?
Dan
--
--- Dan Drake
- http://mathsci.kaist.ac.kr/~drake
---
signature.asc
Description: Digital signature
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
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
--
---
ative, at least
in terms of aspect ratio.
Dan
--
--- Dan Drake
- http://mathsci.kaist.ac.kr/~drake
---
signature.asc
Description: Digital signature
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
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
;t know much
more than that right now.
Dan
--
--- Dan Drake
- http://mathsci.kaist.ac.kr/~drake
---
signature.asc
Description: Digital signature
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
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
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
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
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
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
.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
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
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
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:/
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
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
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.
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
-
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
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
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
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
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
--
-
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
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
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
-
p://sagenb.org/home/pub/3222
Dan
--
--- Dan Drake
- http://mathsci.kaist.ac.kr/~drake
---
signature.asc
Description: Digital signature
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 - 100 of 303 matches
Mail list logo