Dear all,
I had a lecture in computer lab. There were about 15 students on one
sage server. After about 20 minutes we got messages, that Sage lost
connection to Maxima. I did not know how to establish the connection
again and I restarted the virtual server (I run sage on virtual server
under Deb
On 13 Led, 17:47, "William Stein" wrote:
> On Tue, Jan 13, 2009 at 8:36 AM, ma...@mendelu.cz wrote:
>
> > Dear all,
>
> > I had a lecture in computer lab. There were about 15 students on one
> > sage server. After about 20 minutes we got messages, that
Many thanks, memory seems to be a big problem on my server (I did
tests you suggested on my laptop and each worksheet is consumig a lot
of memory). I have seen that sagenb.org has 2GB memory - like my PC.
How many users wirk simultaneously on sagenb.org?
* I think that I can set up my personal co
Thank you for all your answers. I will upgrade my hardware
> 512MB is very very piddly for a server.
>
Yes. I thought that this could be enough, because another my server,
Mathematical Assistant on Web (
http://user.mendelu.cz/marik/maw/index.php?lang=en&form=derivace
) runs pretty well with m
>
> In the text "The calculators are divided into several groups, the
> desription is available", the word "description" is missing the "c".
>
Fixed, thanks. Robert
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscr
Hello all
The command latex(7-(-1)^(1/3)) produces 7 - {-1}^{\frac{1}{3}}
Is it possible to change it into 7 - \left(-1\right)^{\frac{1}{3}}
Which function should be redefined to gain this behavior?
I think that two minus sign, one following the other, could be
confusing (for students of econ
On 14 Led, 08:50, mabshoff wrote:
>
> Your server calls Maxima and without taking a closer look it is
> unclear to me if you start a Maxima process per user or not. Overall
> Maxima is lighter than Sage primarily because it is all common lisp
> and does not use any external libraries per defaul
Hello all
Maxima is much better when drawing 2D plots of functions with jump
discontinuity.
Sage makes a vertical lines at disontinuities, compare
A=plot(1/(x^2-1),(x,-3,3))
show(A,ymax=10,ymin=-10)
in sage and
plot2d(1/(x^2-1),[x,-3,3],[y,-10,10])
in Maxima. Is it possible to remove these al
Hello, I installed today new sage with jsmath bitmap font. These fonts
did not work, I had to put the bitmap fonts from old installation to /
opt/sage-3.4-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux/data/extcode/
javascript/jsmath manually.
>From this reason I report this problem (maybe a bug).
On 17 Bře, 00:41, Jason Grout wrote:
> ma...@mendelu.cz wrote:
>
> Robert, for now, you can
> installhttp://sage.math.washington.edu/home/mabshoff/spkgs/jsmath-image-font...
> into sage 3.4 and it should work. The javascript code was recently
> reorganized, so that explain
On 18 Bře, 20:23, adrian wrote:
> If i try to do
> plot(cos(x),(x,-3,3))
This command works in Internet version www.sagenb.org
The same for sphere()
Maybe something hangs from previous computation? Did the restart of
worksheet not help?
Robert
> in sage 3.4 (through the internet version)
>
Hello, the same is with Czech. Seems to be related to
http://groups.google.cz/group/sage-support/browse_thread/thread/60a863def66c05a1/ca1626cc03a29bfa?lnk=gst&q=accent#ca1626cc03a29bfa
and reported on http://trac.sagemath.org/sage_trac/ticket/4956
Robert
On 19 Bře, 08:27, Dan Drake wrote:
> On
On 19 Bře, 07:00, Kwankyu wrote:
> Hi,
>
> If I write in Korean and save in the TinyMCE editor in the Sage
> Notebook, it appears fine. But if I "open" the cell to change the
> content, then the Korean characters are all gone and strange
> characters are shown instead. Perhaps an encoding problem
Hello, this command produces one half of a cirle, not 1/4 as excepted.
I think that this is a bug in sage 3.4
Robert
region_plot([y>0,x>0,x^2+y^2<3], (-3, 3), (-3,
3),plot_points=100,incol='gray').show(aspect_ratio=1)
--~--~-~--~~~---~--~~
To post to this group,
Hello, I used the commands
hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw-
attachment/ticket/4547/trac_4547.patch")
hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw-
attachment/ticket/5211/trac_5211.patch")
hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw-
at
On 19 Bře, 16:55, "ma...@mendelu.cz" wrote:
> Hello, I used the commands
>
> hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw-
> attachment/ticket/4547/trac_4547.patch")
> hg_sage.import_patch("http://trac.sagemath.org/sage_trac/raw-
On 19 Bře, 16:47, Jason Grout wrote:
> ma...@mendelu.cz wrote:
> > Hello, this command produces one half of a cirle, not 1/4 as excepted.
> > I think that this is a bug in sage 3.4
>
> > Robert
>
> > region_plot([y>0,x>0,x^2+y^2<3], (-3, 3), (-3,
>
> This works:
> sage: var('x,y')
> sage: region_plot([y>0,x>0,x^2+y^2<3], (x, -3, 3), (y, -3,3))
>
> But if one leaves out the variables, one gets an half circle:
> sage: region_plot([y>0,x>0,x^2+y^2<3], (-3, 3), (-3,3))
>
> I've written a patch which fixes
> this:http://trac.sagemath.org/sage
Do you mean something like bool(x^6>-1)
Or you can use maxima inside sage and the command is
http://maxima.sourceforge.net/docs/manual/en/maxima_5.html#Item_003a-is
I think that in general you can expect poor results in any computer
algebra system (like you write about Maple).
Robert
On
On 20 Bře, 13:53, kcrisman wrote:
> something like this, because there are too many similar things to
> catch. I also believe Maple does not plot the negative values.
>
You are right, Maple plots x^(1/3) only for positive x. As a side
effect, if you try to plot the function y=(x^2-1)^(1/3) w
Hello all, after installing these patches I observed the folloving
behavior:
If I enter $x$ in tinymce, save and then enter again, I see the
picture for x and not $x$.
When I save again, $x$ is replaced by sentence like
Hence I cannot return to editing mathematics. This problem is not
present
On 21 Bře, 07:05, Craig Citro wrote:
> > That works well, but what about when the expression is multivariate,
> > such as:
>
> > expand((1+x+1/y)^10)
>
> > It would be nice to have a general command to count the number of
> > summands in such an expression.
>
> Yep, I agree. Here is a *terrible*
Hello, this is related to the thread at
http://groups.google.cz/group/sage-support/browse_thread/thread/2a699360a3847bab
I think that installation of
http://trac.sagemath.org/sage_trac/attachment/ticket/5564/trac_5564-2.patch
causes that TinyMCE cannot be used to edit mathematical formulas
If I
On 22 Bře, 04:46, Jason Grout wrote:
>
> As a hint to whoever wants to hunt this down if they get to it before
> me: the original text of the cell is stored in a parameter passed to
> tinymce when tinymce is initialized. This is passed in the "data"
> attribute in the following code from cell.py
On 11 Dub, 02:26, mabshoff wrote:
> On Apr 10, 5:21 pm, kcrisman wrote:
> If I remember correctly Derive had such a "step by step" mode for
> various things like limits, integration and so on. Derive itself was
> killed as a product, so AFAIK you cannot buy it any more.
The same is for exmapl
Hi, great idea, but remember that computer algebra systems use
slightly different way than humans to solve problems...
I think than more people work on something like this -- just guessing
from questions like
http://thread.gmane.org/gmane.comp.mathematics.maxima.general/23048/focus=23051
and
http
Hi, I think that it is insecure to run sage on a server which is used
for other tasks (webserver, mail server, ).
At least run sage not under your or root account, otherwise you give
to the sage users all your privileges.
Better idea is to have one computer for Sage and nothing more. As
Jason
On 20 Dub, 08:17, Florian Beutler wrote:
> if I use
> rho = 0.0058/((r/2.4)*(1+(r/2.4))^2)
> integral(rho,r,0,10)
>
btw: your integral is divergent (behaves like 1/r near zero).
R.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@goo
Hi, try this
r=var('r')
rho = 0.0058/((r/2.4)*(1+(r/2.4))^2)
integral(rho,r,0.01,10).n()
Robert Marik
On 20 Dub, 08:17, Florian Beutler wrote:
> hallo
> I just installed sage today and probably the problem I have at the
> moment is a typical beginner problem, but unfortunately the tuto
On Apr 21, 8:34 pm, kcrisman wrote:
> On Apr 19, 12:42 pm, "ma...@mendelu.cz" wrote:
>
> > Hell, I think that my question is related
> > tohttp://groups.google.cz/group/sage-support/browse_thread/thread/7cb33...
>
> > How can I write a function which takes
On 23 Dub, 20:38, William Stein wrote:
> On Thu, Apr 23, 2009 at 6:44 AM, philabuster wrote:
>
> > Hi,
>
> > I was wondering why Sage expands products of sums in an unexpected
> > order:
>
> > var('a0,a1,b0,b1,b2,c0,c1,c2,c3,d0,d1,d2,d3,d4')
>
> The ordering of these terms is determined by max
On 23 Dub, 20:38, William Stein wrote:
> New symbolics also tend to be easier to work with term-by-term:
>
> sage: v = expand((a0+a1)*(b0+b1))
> sage: v[0]
> a0*b0
> sage: v[1]
> a0*b1
> sage: v[2]
> a1*b0
> sage: v[3]
> a1*b1
-
Maxima 5.13.0 http:/
Dear SAGE experts,
from the output of desolve?? command I understand that desolve call
maxima and ode2 to solve ordinary differential equations.
1. How can I get the access to method variable?
commands
maxima("ode2('diff(y,x)=x^6*cos(y),y,x)")
maxima('method')
give the answer "separable", but
On 28 Dub, 15:42, "ma...@mendelu.cz" wrote:
> Dear SAGE experts,
>
forgot to write: the test notebook for these issues is at
http://www.sagenb.org/home/pub/494/
Robert
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@
Dear memebers of SAGE-support
I wonder if it is possible to substitute initial conditions into an
equation produced by desolve. I tried something like
y=function('y',x)
desolve(diff(y,x)+sin(x)*y^6==0,y)
sol({x:pi,y:9})
and got
1/(5*y(pi)^5) == c + 1
but I would like to see
1/(5*9^5) == c
bstitutions.
> Anyway, I get this:
>
> sage: y=function('y',x)
> sage: desolve(diff(y,x)+sin(x)*y^6==0,y)
> 1/(5*y(x)^5) == c - cos(x)
> sage: desolve(diff(y,x)+sin(x)*y^6==0,y,[pi,9])
> 1/(5*y(x)^5) == (-295245*cos(x) - 295244)/295245
>
> Does that help?
>
&
age: soln = dsolve(Derivative(y(x),x)+sin(x)*y(x)^6,y(x)); soln
> (C1 - 5*cos(x))**(-1/5)
> sage: ypi = soln.subs(x,pi); ypi
> (5 + C1)**(-1/5)
>
> But now
>
> sage: solve(ypi - 9, C1)
>
> yields an error which I don't understand.
>
> On Tue, Apr 28, 2009 at
On 4 Kvě, 11:29, mabshoff
wrote:
>
> I would suggest you complain in the Maxima group to have them take a
> stake into packaging current Maxima releases for Debian/Ubuntu. AFAIK
> the Maxima maintainer for Debian isn't exactly underworked, so I am
> sure he could use some help.
>
Hello, not r
Hi
On 4 Kvě, 11:56, mabshoff
wrote:
> > Hello, not related to Sage, but if I remember correctly, newer Maxima
> > is in Debian Sid (compiled with GCL). This Sid version is slower than
> > 5.13 (with GCL also).
>
> Do you have any idea why that is and how much slowdown there is? What
> specifical
I removed absolute value and tried indefinite integral
f(k,x)=exp(-(k))*exp(-I*2*pi*k*x)
print(integrate(f(k,x),k));
this gives some answer, now we can substitute limits,
R.
On 7 kvě, 19:27, Alan wrote:
> Hi,
>
> I am new to Sage and am trying to reproduce a well known result that
> the Four
Remember that unless you absolutely trust everybody with access to the
server, you should always run Sage on separate server, as has been
discussed in several threads in this group, for example the end of
http://groups.google.cz/group/sage-support/browse_thread/thread/ad075bfd8c996424/bcacd02ab621
Hello, this code give "double exponent error".
var('a x b gamma p')
f(x)=a*x^((gamma-p))+b*x^((-p))
(f((b*p/((gamma-p)*a))^(1/gamma))).show()
Is it error in sage to TeX converter?
Tested today on sagenb.org
Thanks
Robert Marik
--~--~-~--~~~---~--~~
To post to thi
Hello all, thank you for such a wonderfull software like Sage. I
appretitate the support for nonenglish languages in commnets has been
added some moths ago. However, I returned to Sage after several moths
without any CAS and observed, that if I use letters like ěščř in
TinyMCE editor, save and the
Dear users of Sage, sorry to bother again, with checked Typeset button
the command
solve(x==sqrt(99),x)
gives x==3*sqrt(11)
However sqrt(99) gives 3\,\sqrt{11}. I think that this second format
should be used also in the first case and I am almost sure that it was
in some previoous versions of S
Hello all,
I am trying to provide Sage server for my students. If I run Sage in
vmware, I can access the vmware virtual machine from my PC only. The
students can connect to my PC, but not to the virtual machine. I
guess, some port forwarding and NAT setup i snecessary.
I searched on sagemath.org
Hello all,
I am trying to provide Sage server for my students. If I run Sage in
vmware, I can access the vmware virtual machine from my PC only. The
students can connect to my PC, but not to the virtual machine. I
guess, some port forwarding and NAT setup i snecessary.
I searched on sagemath.org
On 24 zář, 09:17, Robert Bradshaw
wrote:
> This depends on what kind of PC you're running the server on. The way
> we do sagenb.org is have apache running on the host machine which
> forwards all incoming connections to the virtual machine with re-
> writing rules. This is pretty easy to set up o
On 24 zář, 09:29, Jason Grout wrote:
>
> In addition to Robert Bradshaw's answer, you could also set up "bridged
> networking" in VMWare for this sort of thing.
>
Thanks, but the network policy on our university allows to have only
one (given and registered) MAC address in one connection point
On 24 zář, 20:23, Iskay wrote:
> I wanted to plot x^(1/3) in sage. When I typed it on sage it returned
> this.
>
> f = x^(1/3)
> plot(f)
> verbose 0 (2999: plot.py, generate_plot_points) WARNING: When
> plotting, failed to evaluate function at 100 points.
> verbose 0 (2999: plot.py, generate_plot
On 25 zář, 04:27, Sterling wrote:
> How do I evaluate a Jacobian at certain values? For example, I type:
>
> x1,x2,x3 = var('x1 x2 x3')
>
> f1(x1,x2,x3) = 3*x1 - cos(x2*x3) - (1/2)
> f2(x1,x2,x3) = x1^2 - 81*(x2 + 0.1)^2 + sin(x3) + 1.06
> f3(x1,x2,x3) = e^(-x1*x2) + 20*x3 + (10*pi - 3)/3
>
> f
On 25 zář, 05:29, "ma...@mendelu.cz" wrote:
> On 25 zář, 04:27, Sterling wrote:
>
>
>
> > How do I evaluate a Jacobian at certain values? For example, I type:
>
> > x1,x2,x3 = var('x1 x2 x3')
>
> > f1(x1,x2,x3) = 3*x1 - cos(x2*x3) -
On 24 zář, 11:08, William Stein wrote:
> For the record, here is the actual entry I use in /etc/httpd.conf:
>
>
> RewriteEngine On
> ServerName sagenb.org
> ProxyPass/http://sagenb2:8000/
> ProxyPassReverse /http://sagenb2:8000/
> DocumentRoot /
>
>DefaultTyp
Hello all, I established Sage server for our university (running in
vmware, behind firewall, thanks for help from this group concerning
port forwarding etc.) and now I have two more questions.
1. I start Sage in rc.local by
nohup su sage -c 'cd /opt/sage&&./sage notebook.sage' &> /dev/null &
How
On 26 zář, 15:27, Thierry Dumont wrote:
> ... strange only for me I hope.
>
I have similar problem. As I undesrstand, if the user sage runs
program sage and user sageuser is in server_pool, then .sage directory
should be writeable for sage, but not for sageuser. Right? Otherwise
sageuser cen d
Dear sage users, I'm trying this piece of code (
http://alpha.sagenb.org/home/pub/16
)
x,y = var('x y')
(x_min, x_max, y_min,y_max)=(0,2,0,4)
f(x,y)=cos(y)
A=plot_slope_field(f(x,y),(x, x_min, x_max), (y, y_min,y_max))+text
(('$y\,^{\prime}=%s $'%latex(f(x,y))),(x_max,y_max),
vertical_alignment=
Hello all, I am looking for the possibility how to simplify each term
in an expression separately.
Consider
A=x/((x^2/y^2 + 1)*y) + arctan(x/y)
I wish to get x*y/(x^2+y^2)+atan(x/y) , which can be produced in
Maxima by map(fullratsimp, A)
* simplify(A) gives A - no simplification
* A.simp
On 30 zář, 22:17, "ma...@mendelu.cz" wrote:
> Hello all, I am looking for the possibility how to simplify each term
> in an expression separately.
>
> Consider
> A=x/((x^2/y^2 + 1)*y) + arctan(x/y)
>
> I wish to get x*y/(x^2+y^2)+atan(x/y) , which can be produced
On 1 říj, 15:27, kcrisman wrote:
>
> Hope this helps,
Yes, it helped. Thank you.
Robert Marik
> - kcrisman
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-uns
On 3 říj, 08:37, William Stein wrote:
> On Fri, Oct 2, 2009 at 10:34 PM, Mike Hansen wrote:
>
> > Hello,
>
> > On Sat, Oct 3, 2009 at 12:17 PM, Chris Seberino wrote:
>
> >> The wonderful Sage notebook uses relative urls like
> >> /login and /register. How make Sage notebook use relative urls w
Dear sage users and developers
trying to solve y''+4y=0 with initial conditions y(0)=0 and y'(0)=0
y=function('y',x)
eq=diff(y,x,2)+4*y==0
desolve(eq,y,ics=[0,0,0])
sage returns y(0)*cos(2*x) and not 0
What is wrong? The help for the desolve command shows the same
behavior on slighhtly more
I do not understand french error messages, but what about
http://localhost:8000
and
http://127.0.0.1:8000
Is the sage notebook there?
btw: the french messages are probably not from sage
Robert Marik
On 3 říj, 12:40, Michel Barthélémy Billard Sirakawa
wrote:
> PC emachine
> Fedora 11
> Sage 4
David Joyner wrote:
>
> > This is a known bug. Marshall and I tried to fix it during a SageDays in
> > Seattle but failed to figure out the magic in Robert Bradshaw's code
> > for desolve. I think it is "easy to fix for those who know how to fix it
> > e
in
> > Seattle but failed to figure out the magic in Robert Bradshaw's code
> > for desolve. I think it is "easy to fix for those who know how to fix it
> > easily", but that rules me out:-)
>
> > On Sat, Oct 3, 2009 at 3:30 AM, ma...@mendelu.cz wrote:
&g
On 3 říj, 23:22, "ma...@mendelu.cz" wrote:
>
> I have not enought skill in Python, Sage, hg and related thinks. Is
> there any person interested in the problem, which sould like to try
> this?
The following code works in Sage
y=function('y',x)
k
> about Python or Mercurial either. If you don't have a Trac account,
> email William privately for one, and then you can log this as a ticket
> and create a patch. In the meantime the documentation for doing very
> basic patches is pretty good in the developer's guide, which I think
> is linked
On 4 říj, 14:57, Marshall Hampton wrote:
> For the first time dealing with some of these things the IRC channel
> sage-devel is very helpful. It would be great if you could do this.
> I am happy to review it, you can put me as a CC: or reviewer. I think
> your solution sounds good.
>
> -Marsh
I have one solution :) very very poor (really very poor) solution
and from this reason I will not supply the patch yet.
The method is to call ode2 again, now together with ic2 in one new
call of Maxima.
The (fixed) file is desolvers.py is at
http://user.mendelu.cz/marik/temp/desolvers.py
The
On 5 říj, 23:14, calcp...@aol.com wrote:
> Wow, this sounds like a big bug. I will be using Sage quite a bit in a
> Calculus I and II lab in the Spring. Is this going to be huge problem?
Do not think that this will be huge problem. You cal allwayas use
Maxima instead Sage. In notebook you can
New version (slightly cleaner and more readable the previous one and
better in the sense that desolve with initial condition returns the
right-hand side only) is at http://user.mendelu.cz/marik/temp/desolvers.py
However - we still call ode2 two times when solving second order ode
with initial con
On 6 říj, 15:21, kcrisman wrote:
ere.
>
> Thanks for taking the time to look into this!
Thank you for your help. I posted the patch
http://trac.sagemath.org/sage_trac/ticket/6479
which (I hope) fixes ic2 and bc2 commands.
Results of tests have been updated and test related to bc2 has been
add
Hm, this is my Sage 4.1.1
a1=-(sqrt(13)-1)/2
latex(a1)
output is -\frac{1}{2} \, \sqrt{13} + \frac{1}{2}
You may have old version of Sage
latex(-{{\sqrt[13]-1\over[2}}) produces error
Robert Marik
On 6 říj, 21:10, Mikie wrote:
> If I have this a1=-(sqrt(13)-1)/2 in a variable, then latex(a1
er. I am using 3.4.
> When I assign it to a variable it works as below. If you would try
> a1=maxima.solve(x^2-x-3,x)
> R1=a1[0]
> R3=maxima.rhs[R1]
> latex(R3)
> produces -- {{1-\sqrt{13}}\over{2}}
> not good
>
> On Oct 6, 1:46 pm, "ma...@mendelu.cz" wrote:
&
This is very very small RAM for 7 sage notebooks
I think that this has been dicussed here or in sage-edu in January
Robert Marik
On 7 říj, 01:00, Chris Seberino wrote:
> I have an Ubuntu 9.04 Xen virtual machine with 350 Mb RAM.
> (from linode.com hosting services)
>
> I tried to have 7 people
On 7 říj, 01:19, "ma...@mendelu.cz" wrote:
> This is very very small RAM for 7 sage notebooks
>
> I think that this has been dicussed here or in sage-edu in January
>
Btw. where are posts from January? They seem to be deleted from this
group. Are they deleted? Or is the
On 7 říj, 13:36, William Stein wrote:
>
> http://groups.google.com/group/sage-edu/topics?start=80&sa=N
Sorry for missunderstanding, I mean sage-support, seems to start in
October
http://groups.google.com/group/sage-support/topics?start=1
Robert
--~--~-~--~~~---~--
On 7 říj, 13:42, William Stein wrote:
> On Wed, Oct 7, 2009 at 4:40 AM, ma...@mendelu.cz wrote:
> It's October right _now_. The archive doesn't start in October, it ends in
> October.
Oops, sorry :)
So another threat related to memory and Sage in educati
Well, I think that I fixed this issue and added some more features
* Sage allows to solve Lagrange, Clairot and some other equations.
however, no IVP is allowed if Maxima outputs pair [general_solution,
singular_solution] since this is more delicate thing, I think.
* Sage has not the bug just di
On 7 říj, 16:21, Ranjit wrote:
> I'm trying to figure out how to do a simple substitution. I've the
> following code:
>
> var('r beta beta_0 R a h')
> psi=function('psi',r)
> sigma=function('sigma',r)
>
> H_0=function('H_0',r)
>
> H_grad = lambda psi : (1/2)*(beta/beta_0)*R^2*(psi.diff(r))^2
>
* Use plot3d
* typo error mp2 versus m2 and mp1 versus m1 ?
This works.
var('t1 t2')
m1 = 0.33;
m2 = 0.39;
sap = 1.2;
saf = 0.4;
H = 10;
E(t1,t2)= -1*m1*H*sin(t1) - m2* H * sin(t2)+sap * cos(t2-t1)-saf * sin
(t1)
plot3d(E,(t1,-5,5),(t2,-5,5))
R.M.
On 7 říj, 23:09, SG wrote:
> Hi,
> I am tryin
perhaps, no subst is necessary:
var('r beta beta_0 R a h')
psi=function('psi',r)
sigma=function('sigma',r)
H_0=function('H_0',r)
H_grad = lambda psi : (1/2)*(beta/beta_0)*R^2*(psi.diff(r))^2
H_0(psi) = -(1/2)*(beta/beta_0-1)*psi^2 + beta*a*psi^4 + beta*h*psi
H_1=H_grad((1/R)*(beta_0/beta)^(1/2
> '${x}^{2} - x - \\frac{3}{2}=0$'
> '$x^2-x-{{3}\\over{2}}$'<<<<<<<<< the problem
> x^2-x+1/4
> x^2-x+1/4
> (2*x-1)^2/4
> 7/4
> [x=-(sqrt(7)-1)/2,x=(sqrt(7)+1)/2]
> --
> Input --val1=CSquare(x^2-x-3/2);val1[0];val1[1];val1[2];
On 8 říj, 19:41, Ranjit wrote:
>
> does not. So I guess there's an upper limit to the number of
> operations that the expression being replaced can have to work in subs
> ().
Perhaps true, but IMHO very risky guess which is not true, if pattern
matching in Maxima is behind the scene when doing
Perhaps somebody knows how is this supported in Sage.
I know only how to get the answer via maxima and
http://maxima.sourceforge.net/docs/manual/en/maxima_20.html#Item_003a-Introduction-to-QUADPACK
sage: expr=sin(x)/x
sage: ex=expr._maxima_()
sage: print ex.quad_qags(x,1,2,).sage()
sage: ex.quad_
numerical_integral?
On 12 říj, 13:01, "ma...@mendelu.cz" wrote:
> Perhaps somebody knows how is this supported in Sage.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send e
(3*x + m*x + a*y+b*y ).collect(x).collect(y)
On 12 říj, 19:20, Chris Seberino wrote:
> How group terms in an expression?
>
> e.g. How group terms with x and y in:
>
> 3*x + m*x + a*y+b*y
>
> to get:
>
> (3 + m)*x + (a + b)*y ??
>
> cs
--~--~-~--~~-
no error with 4.1.2.rc0
R.M.
[ma...@um-bc201 /opt/sage-4.1.2.rc0]$ ./sage
--
| Sage Version 4.1.2.rc0, Release Date: 2009-09-30 |
| Type notebook() for the GUI, and license() for information.|
--
Hello all, is there any other possibility how to plot implicit
function than implicitplot?
I do not like implicitplot too much, since it is in fact countourplot
and it is not easy to set the color (for example).
Thanks
Robert Marik
--~--~-~--~~~---~--~~
To post to
On 14 říj, 05:51, Jason Grout wrote:
>
> implicit_plot(x^2+y^2==1, (x,-2, 2), (y,-2, 2), cmap=["red"])
>
Thanks, I missed this example.
I tried rgbcolor and color option and then tried blindly various
predefined colormaps.
Robert Marik
--~--~-~--~~~---~--~~
To p
On 14 říj, 06:20, Jason Grout wrote:
> Chris Seberino wrote:
> > How make worksheet run some code at startup?
>
> > e.g. var("a b c d ... z") ?
>
> > Currently my students need to evaluate var("a b c ... z") in every
> > worksheet I give them. It would be nice to hardcode this into
> > workshe
Hello all
trying approximate numerically eigenvalues of a matrix I get Error
sage: A=matrix(((0,1),(-1,0)))
sage: B=A.eigenvalues()[0]
sage: n(B)
Traceback (click to the left for traceback)
...
ValueError: Cannot coerce algebraic number with non-zero imaginary
part
to algebraic real
I guess, I
On 16 říj, 05:45, William Stein wrote:
> On Thu, Oct 15, 2009 at 7:45 PM, Matt Rissler wrote:
>
> > Basically, I'm having student look for the x that makes the matrix
> > singular, or the columns linearly dependent, or ... However Sage
> > behaves like so:
>
> > sage: A=matrix([[0,1,1],[2,2,-2]
I think that you can use custom css file in your .sage directory.
I do not remember he name of this file, try to seach this group, it
has been dicussed - here or in sage-devel
Robert Marik
On 16 říj, 00:21, Chris Seberino wrote:
> On Oct 15, 2:21 pm, William Stein wrote:
>
> > Are you asking
On 16 říj, 06:28, Mike Hansen wrote:
> How do _you_ detect when the session is over? Your code needs to be
> responsible for detecting when the session is over and deleting the
> PNGs.
You can also use sufficiently random and long names in temp directory
and in cron daemon clean this director
On 16 říj, 21:32, Laurent wrote:
> a = 1
> b = 2
> c = 3
> d = 8
> print "\\frac{",a,"-",b,"}{",c,"-",d,"}=",(a-b)/(c-d)
perhaps print "\\frac{",a,"-(",b,")}{",c,"-",d,"}=",(a-b)/(c-d) if
b<0
Robert
--~--~-~--~~~---~--~~
To post to this group, send email to
On 17 říj, 23:06, Laurent wrote:
> My aim is to do
> solve(g(x)=0.5)
> for example.
>
> Any ideas ?
I have no idea how to solve your question, but even if you solve it,
the command solve will not work in this kind of problem. You should
use some command which solves numerically. Something lik
On 19 říj, 21:19, Simon King wrote:
> By the way, does "export to" (say, to PDF) exist in the Notebook?
Im working on a script which can be used to format worksheets from sws
filws via pdflatex.
But do not expect too much! Will work for some basic html between
cells, not too long lines in inpu
Probably depends not on Sage but on your OS. Customize file
associtations in your file manager. Or what aoubt to save picture in
native format and use convertcommand to convert into gif or anything
else.
Robert
On 23 říj, 12:34, wxu...@sohu.com wrote:
> Hi all,
>
> when I use sage.4.0.2 to plot
On 28 říj, 23:46, Erik wrote:
> The first two solutions did what I intended. The 3rd one did not, but
> I may have erred.
>
> Is the use of "_" documented anywhere?
It is on one of Sage referrence cards
Robert
--~--~-~--~~~---~--~~
To post to this group, send e
Hello all, the conversion into PDF has been discussed several times
here.
One option is to print into a PDF file. This is another possibility:
I wrote for myself a simple converter from Sage worksheets to PDF via
PDF LaTeX
You can see the outputs in the bulletted list at
http://user.mendelu.cz
On 28 říj, 15:13, David wrote:
> Things are looking up here. I think I'm having some firewall issues
> with high port numbers. Is there any way to allow sage to open port
> 443 without running as root? This would be easier than trying to get
> the computer center to open up a new port campus-wi
1 - 100 of 276 matches
Mail list logo