[sage-support] Re: Copying/moving worksheets

2008-09-02 Thread Mike Hansen

> Well, that's the thing; once one downloads the new VMWare image and
> tries to put the worksheets back where they belong, one still needs to
> look for them by hand, which of course would take an insane amount of
> time - unless I'm missing something.  So upgrading on VMWare is sort
> of like moving files to another computer, unfortunately.  Anyway, I'll
> report back to our admin.

If you copy over the whole notebook directory, then it should just
load up like it did before.

--Mike

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Copying/moving worksheets

2008-09-02 Thread kcrisman

> Odd, this discussion ended somehow on sage-devel, too.

Sorry for spamming.  That was initially intentional, as I was also
asking about a timeline, if it existed, for fixing this, which I
didn't think was a support issue per se.

> Anyway: in this context upgrade == download new VMWare image of Sage.
>
> As Marshall pointed out: the in-place upgrade should work and as I
> mentioned in the sage-devel thread one should make a copy of the
> VMWare image with the data before attempting to do so since if one has
> backups fewer things tend to go wrong due to Murphy's law :)
>

Well, that's the thing; once one downloads the new VMWare image and
tries to put the worksheets back where they belong, one still needs to
look for them by hand, which of course would take an insane amount of
time - unless I'm missing something.  So upgrading on VMWare is sort
of like moving files to another computer, unfortunately.  Anyway, I'll
report back to our admin.

- kcrisman
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jsMath issue and solution with error code -7

2008-09-02 Thread mitch_feaster

Thanks a lot!  Worked perfectly for me.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Copying/moving worksheets

2008-09-02 Thread mabshoff



On Sep 2, 2:44 pm, Marshall Hampton <[EMAIL PROTECTED]> wrote:
> I'm a little confused - I upgrade my sage version often in the middle
> of semesters.  Since the notebook lives in a seperate directory it
> shouldn't be a problem.
>
> Perhaps my confusion is related to the VMWare server, because I don't
> use that.  I thought you could upgrade those though.
>
> -M. Hampton
>

Odd, this discussion ended somehow on sage-devel, too.

Anyway: in this context upgrade == download new VMWare image of Sage.

As Marshall pointed out: the in-place upgrade should work and as I
mentioned in the sage-devel thread one should make a copy of the
VMWare image with the data before attempting to do so since if one has
backups fewer things tend to go wrong due to Murphy's law :)

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Copying/moving worksheets

2008-09-02 Thread Marshall Hampton

I'm a little confused - I upgrade my sage version often in the middle
of semesters.  Since the notebook lives in a seperate directory it
shouldn't be a problem.

Perhaps my confusion is related to the VMWare server, because I don't
use that.  I thought you could upgrade those though.

-M. Hampton

On Sep 2, 9:52 am, kcrisman <[EMAIL PROTECTED]> wrote:
> We are running a VMWare server for fall classes.  However, we have run
> into the disturbing problem that if we want to use a newer version of
> Sage (such as to get the plotting improvements), we would need to
> (quoting William in the earlier version of this thread) "upload them
> tediously one by one."  This basically means we can't upgrade Sage in
> the middle of the semester if even a few students decide to use Sage,
> and we are hoping for a score or two or them to do so.  Also, will the
> user info migrate, or would they have to be readded?
>
> One thing the admin has tried is copying old worksheets into different
> possible directories, just as a crazy thing to do, for instance 
> givenhttp://groups.google.com/group/sage-support/browse_thread/thread/ef2d...
> . Now,http://www.sagemath.org/doc/tut/node45.htmlmakes it clear
> where the worksheet pages are supposed to live.  But today I verified
> that the version of at least one of my worksheets that in fact shows
> up in the browser lives in ~/sage_notebook/worksheets/admin , while
> others definitely live in ~/.sage/sage_notebook/worksheets/admin .  It
> isn't a case of a reference, either, because there is an older version
> of the first worksheet in the .sage directory, while in the other case
> the worksheet *only* exists in the .sage/ directory.  So now I am
> unsure whether I should even try to move my own worksheets around on
> my personal computer!
>
> I would love to try to fix this but unfortunately know nothing about
> these issues, and our admin is not likely to try to fix the code.  Is
> there any sense (on support or devel) of whether either of these
> things might be resolved soon (or in the second case, if it's even
> been noticed before - I haven't seen it in a fairly exhaustive sage-
> support search)?  We would obviously prefer if yes, but even if not,
> then at least we can prepare for this properly and not send students
> on wild goose chases for their data.
>
> Thanks much.
> - kcrisman
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Plotting and constant functions

2008-09-02 Thread Jason Grout

Marshall Hampton wrote:
> Do these speed up implicit_plot and contour_plot?


I'm pretty sure that implicit_plot and contour_plot already use fast_float.

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error configuring clisp - cannot find source lispbibl.d (Linux RHEL)

2008-09-02 Thread mabshoff



On Sep 2, 12:07 pm, Shan-Ho <[EMAIL PROTECTED]> wrote:
> Dear All,

Hi Shan-Ho,

> I am trying to install Sage 3.1.1 (downloaded the source
> tarball) on an AMD Opteron node, running Red Hat Linux
> (Entreprise Level 4.3). I am getting an error configuring
> clisp, the error message is:
>
>  configure: error: cannot find sources (lispbibl.d) in
> /usr/local/RepeatMasker or ..
> Error configuring clisp
>
> where /usr/local/RepeatMasker is the first directory in
> my PATH. The file lispbibl.d is there in the directory
> spkg/build/clisp-2.46.p6/src/src under the sage-3.1.1
> directory. Not sure why configure doesn't find it.
>
> Is it possible for me to install clisp separately and
> tell sage to find it in a given path? If so, how do I
> pass this clisp path in the sage building stage?

The issue here is that we rename the clisp binary to clisp-bin - at
least that is what Maxima is looking for. You need a little wrapper
script or clisp as well as clisp.bin like

#!/bin/sh
"$SAGE_ROOT/local/bin/clisp.bin" -B "$SAGE_ROOT/local/lib/clisp-2.46"
"$@"

and adjust the path and binary name for your install. You can also
change the maxima.spkg to use clisp instead of clisp.bin as a binary
name.

> Any thoughts how to fix this problem would be highly
> appreciated. Below are the last 50 lines of install.log:

In so many words: clisp sucks and we will hopefully switch to ecl in
the next (3.2) release. We just upgraded Maxima so that it can be
build with ecl in 3.1.2 - which will be out this week. 3.2 will then
follow in about another two weeks.



> Thanks!
> Shan-Ho Tsai

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Plotting and constant functions

2008-09-02 Thread Marshall Hampton

Do these speed up implicit_plot and contour_plot?

-M. Hampton

On Aug 25, 8:11 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> > It would be nice if the plotting functions could be fixed. None of
> > these techniques works (easily) from the user level.
>
> I just put a patch up at #3952 which fixes many of these issues.  Now
> you can do things like
>
> sage: plot(2, -2, 2) #horizontal line at y=2
>
> sage: parametric_plot((1, x), -2, 2) #vertical line
>
> sage: parametric_plot((x^2, x), -2, 2) #parabola on its side
>
> Hopefully these will get into 3.1.2.
>
> --Mike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Error configuring clisp - cannot find source lispbibl.d (Linux RHEL)

2008-09-02 Thread Shan-Ho

Dear All,

I am trying to install Sage 3.1.1 (downloaded the source
tarball) on an AMD Opteron node, running Red Hat Linux
(Entreprise Level 4.3). I am getting an error configuring
clisp, the error message is:

 configure: error: cannot find sources (lispbibl.d) in
/usr/local/RepeatMasker or ..
Error configuring clisp

where /usr/local/RepeatMasker is the first directory in
my PATH. The file lispbibl.d is there in the directory
spkg/build/clisp-2.46.p6/src/src under the sage-3.1.1
directory. Not sure why configure doesn't find it.

Is it possible for me to install clisp separately and
tell sage to find it in a given path? If so, how do I
pass this clisp path in the sage building stage?

Any thoughts how to fix this problem would be highly
appreciated. Below are the last 50 lines of install.log:

.
clisp-2.46.p6/src/doc/unix-ent.xml
clisp-2.46.p6/src/doc/impnotes.html
clisp-2.46.p6/src/doc/impent.xml
clisp-2.46.p6/src/doc/_clisp.1
clisp-2.46.p6/src/doc/impnotes.xml.in
clisp-2.46.p6/src/doc/mop-classes.dot
clisp-2.46.p6/src/doc/mop-classes.png
clisp-2.46.p6/src/Makefile.devel
clisp-2.46.p6/spkg-install
clisp-2.46.p6/spkg-dist
clisp-2.46.p6/.hgignore
Finished extraction

Host system
uname -a:
Linux machine.name.xxx.edu 2.6.9-78.0.1.ELsmp #1 SMP Tue Jul 22
18:01:05 EDT
2008 x86_64 x86_64 x86_64 GNU/Linux


GCC Version
gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)

Disabling parallel make
executing
/usr/local/src/sage-3.1.1/spkg/build/clisp-2.46.p6/src/src/configure
--disable-option-checking --with-readline
--with-libreadline-prefix=/usr/local/src/sage-3.1.1/local/lib/
--prefix=/usr/local/src/sage-3.1.1/local --without-libintl
--cache-file=config.cache
configure: error: cannot find sources (lispbibl.d) in
/usr/local/RepeatMasker or ..
Error configuring clisp

real0m4.123s
user0m0.571s
sys 0m2.780s
sage: An error occurred while installing clisp-2.46.p6
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /usr/local/src/sage-3.1.1/install.log.  Describe your computer,
operating
system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/usr/local/src/sage-3.1.1/spkg/build/clisp-2.46.p6 and type 'make'.
Instead type "/usr/local/src/sage-3.1.1/sage -sh"
in order to set all environment variables correctly, then cd to
/usr/local/src/sage-3.1.1/spkg/build/clisp-2.46.p6
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/clisp-2.46.p6] Error 1
make[1]: Leaving directory `/usr/local/src/sage-3.1.1/spkg'

real112m16.968s
user85m53.585s
sys 14m36.092s

Thanks!
Shan-Ho Tsai


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: testing for equality

2008-09-02 Thread John Cremona

2008/9/2 Jason Merrill <[EMAIL PROTECTED]>:
>
> Be careful with bool.  It will return False for equations that may be
> true.  Simple example:
>
> sage: bool(x == 0)
> False
>
> I believe in some cases it will return False for equations that are
> actually True if sage doesn't know how to make the necessary
> simplifications.  But if it returns True, you can generally trust that
> the equation is true.
>
> See http://trac.sagemath.org/sage_trac/ticket/3369

In evaluating bool(eqn) where eqn is an equation such as
sage: eqn = x==x
Sage is actually evaluating eqn.__iszero__.  the docstring there says:

def __nonzero__(self):
"""
Return True if this (in)equality is definitely true.  Return False
if it is false or the algorithm for testing (in)equality is
inconclusive.

The main thing which Sage does to decide is to convert the equation
into  maxima format and then get maxima to evaluate "is m_eqn" where
m_eqn is the maxima-ised eqn.  And maxima is not infallible in
deciding.  It is probably best, therefore,  to look at maxima's
documentation to see what will happen.  For example,

sage: eqn = x^2==x
sage: eqn
x^2 == x
sage: bool(eqn)
False
sage: solve(eqn)
[x == 0, x == 1]

eqn evaluates to False under bool() because it is not always true,
i.e. is not an identy.  Of course it is true for some x, as we see
using solve().

sage: eqn = (x+y)^2 == x^2+2*x*y+y^2
sage: eqn
(y + x)^2 == y^2 + 2*x*y + x^2
sage: bool(eqn)
True

sage: eqn = cos(x)^2+sin(x)^2==1
sage: bool(eqn)
True

sage: bool(exp(pi*I)==-1)
True


John

>
> JM
>
>
> On Sep 2, 11:38 am, John H Palmieri <[EMAIL PROTECTED]> wrote:
>> On Sep 2, 8:19 am, "John Cremona" <[EMAIL PROTECTED]> wrote:
>>
>> > Putting == between two symbol expressions creates a symbolic equation,
>> > not a test for equality.  There is there fore a difference between
>> > these:
>>
>> > sage: 3 == 3
>> > True
>> > sage: x == x
>> > x == x
>>
>> In the same category as the latter:
>>
>> sage: 3 == pi
>> 3 == pi
>> sage: bool(3 == pi)
>> False
>>
>> In your situation, 'bool(dSv==dSvq)' returns True.  (bool is a
>> function which 'Returns True when the argument x is true, False
>> otherwise'.)
>>
>> > This behaviour of == is (I think) unique to the symbolic ring in Sage.
>> >  You can test for equality like this:
>>
>> > sage: dSv-dSvq
>> > 0
>> > sage: (dSv-dSvq).is_zero()
>> > True
>>
>> > though in more complicated examples the expessions might have to be
>> > simplified manually.
>>
>> > In general in computer algebra, simplifying an expression which
>> > simplifies to 0 is easier than trying to find two simplifications of
>> > two expressions which appear to be the same.
>>
>> > I'm sure there are computer algebra experts reading this who can
>> > explain it better.
>>
>> > John
>>
>> > 2008/9/2 Stan Schymanski <[EMAIL PROTECTED]>:
>>
>> > > Dear all,
>>
>> > > I must be doing something wrong here, but I don't know what. I'm sure
>> > > someone will see it straight away:
>>
>> > > --
>> > > | SAGE Version 3.1.1, Release Date: 2008-08-17   |
>> > > | Type notebook() for the GUI, and license() for information.|
>> > > --
>>
>> > > sage: var('myuv myub q qvb qbv')
>> > > (myuv, myub, q, qvb, qbv)
>> > > sage: dSv=myuv*qvb - myuv*qbv
>> > > sage: dSvq=myuv*qvb - myuv*qbv
>> > > sage: dsage: dSv-dSvq
>> > > myuv*qvb - myuv*qbv == myuv*qvb - myuv*qbv
>>
>> > > Why does SAGE not return 'true'?
>>
>> > > Just pointing me to the right page in the docu would help, too! Thanks
>> > > already.
>>
>> > > Stan
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: testing for equality

2008-09-02 Thread Jason Merrill

Be careful with bool.  It will return False for equations that may be
true.  Simple example:

sage: bool(x == 0)
False

I believe in some cases it will return False for equations that are
actually True if sage doesn't know how to make the necessary
simplifications.  But if it returns True, you can generally trust that
the equation is true.

See http://trac.sagemath.org/sage_trac/ticket/3369

JM


On Sep 2, 11:38 am, John H Palmieri <[EMAIL PROTECTED]> wrote:
> On Sep 2, 8:19 am, "John Cremona" <[EMAIL PROTECTED]> wrote:
>
> > Putting == between two symbol expressions creates a symbolic equation,
> > not a test for equality.  There is there fore a difference between
> > these:
>
> > sage: 3 == 3
> > True
> > sage: x == x
> > x == x
>
> In the same category as the latter:
>
> sage: 3 == pi
> 3 == pi
> sage: bool(3 == pi)
> False
>
> In your situation, 'bool(dSv==dSvq)' returns True.  (bool is a
> function which 'Returns True when the argument x is true, False
> otherwise'.)
>
> > This behaviour of == is (I think) unique to the symbolic ring in Sage.
> >  You can test for equality like this:
>
> > sage: dSv-dSvq
> > 0
> > sage: (dSv-dSvq).is_zero()
> > True
>
> > though in more complicated examples the expessions might have to be
> > simplified manually.
>
> > In general in computer algebra, simplifying an expression which
> > simplifies to 0 is easier than trying to find two simplifications of
> > two expressions which appear to be the same.
>
> > I'm sure there are computer algebra experts reading this who can
> > explain it better.
>
> > John
>
> > 2008/9/2 Stan Schymanski <[EMAIL PROTECTED]>:
>
> > > Dear all,
>
> > > I must be doing something wrong here, but I don't know what. I'm sure
> > > someone will see it straight away:
>
> > > --
> > > | SAGE Version 3.1.1, Release Date: 2008-08-17                       |
> > > | Type notebook() for the GUI, and license() for information.        |
> > > --
>
> > > sage: var('myuv myub q qvb qbv')
> > > (myuv, myub, q, qvb, qbv)
> > > sage: dSv=myuv*qvb - myuv*qbv
> > > sage: dSvq=myuv*qvb - myuv*qbv
> > > sage: dsage: dSv-dSvq
> > > myuv*qvb - myuv*qbv == myuv*qvb - myuv*qbv
>
> > > Why does SAGE not return 'true'?
>
> > > Just pointing me to the right page in the docu would help, too! Thanks
> > > already.
>
> > > Stan
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Copying/moving worksheets

2008-09-02 Thread kcrisman

We are running a VMWare server for fall classes.  However, we have run
into the disturbing problem that if we want to use a newer version of
Sage (such as to get the plotting improvements), we would need to
(quoting William in the earlier version of this thread) "upload them
tediously one by one."  This basically means we can't upgrade Sage in
the middle of the semester if even a few students decide to use Sage,
and we are hoping for a score or two or them to do so.  Also, will the
user info migrate, or would they have to be readded?

One thing the admin has tried is copying old worksheets into different
possible directories, just as a crazy thing to do, for instance given
http://groups.google.com/group/sage-support/browse_thread/thread/ef2d39efd31f5e28/336519680f4e10ae?lnk=gst&q=moving+worksheets#336519680f4e10ae
. Now, http://www.sagemath.org/doc/tut/node45.html makes it clear
where the worksheet pages are supposed to live.  But today I verified
that the version of at least one of my worksheets that in fact shows
up in the browser lives in ~/sage_notebook/worksheets/admin , while
others definitely live in ~/.sage/sage_notebook/worksheets/admin .  It
isn't a case of a reference, either, because there is an older version
of the first worksheet in the .sage directory, while in the other case
the worksheet *only* exists in the .sage/ directory.  So now I am
unsure whether I should even try to move my own worksheets around on
my personal computer!

I would love to try to fix this but unfortunately know nothing about
these issues, and our admin is not likely to try to fix the code.  Is
there any sense (on support or devel) of whether either of these
things might be resolved soon (or in the second case, if it's even
been noticed before - I haven't seen it in a fairly exhaustive sage-
support search)?  We would obviously prefer if yes, but even if not,
then at least we can prepare for this properly and not send students
on wild goose chases for their data.

Thanks much.
- kcrisman
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: testing for equality

2008-09-02 Thread John H Palmieri



On Sep 2, 8:19 am, "John Cremona" <[EMAIL PROTECTED]> wrote:
> Putting == between two symbol expressions creates a symbolic equation,
> not a test for equality.  There is there fore a difference between
> these:
>
> sage: 3 == 3
> True
> sage: x == x
> x == x

In the same category as the latter:

sage: 3 == pi
3 == pi
sage: bool(3 == pi)
False

In your situation, 'bool(dSv==dSvq)' returns True.  (bool is a
function which 'Returns True when the argument x is true, False
otherwise'.)

> This behaviour of == is (I think) unique to the symbolic ring in Sage.
>  You can test for equality like this:
>
> sage: dSv-dSvq
> 0
> sage: (dSv-dSvq).is_zero()
> True
>
> though in more complicated examples the expessions might have to be
> simplified manually.
>
> In general in computer algebra, simplifying an expression which
> simplifies to 0 is easier than trying to find two simplifications of
> two expressions which appear to be the same.
>
> I'm sure there are computer algebra experts reading this who can
> explain it better.
>
> John
>
> 2008/9/2 Stan Schymanski <[EMAIL PROTECTED]>:
>
>
>
> > Dear all,
>
> > I must be doing something wrong here, but I don't know what. I'm sure
> > someone will see it straight away:
>
> > --
> > | SAGE Version 3.1.1, Release Date: 2008-08-17                       |
> > | Type notebook() for the GUI, and license() for information.        |
> > --
>
> > sage: var('myuv myub q qvb qbv')
> > (myuv, myub, q, qvb, qbv)
> > sage: dSv=myuv*qvb - myuv*qbv
> > sage: dSvq=myuv*qvb - myuv*qbv
> > sage: dsage: dSv-dSvq
> > myuv*qvb - myuv*qbv == myuv*qvb - myuv*qbv
>
> > Why does SAGE not return 'true'?
>
> > Just pointing me to the right page in the docu would help, too! Thanks
> > already.
>
> > Stan
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: testing for equality

2008-09-02 Thread John Cremona

Putting == between two symbol expressions creates a symbolic equation,
not a test for equality.  There is there fore a difference between
these:

sage: 3 == 3
True
sage: x == x
x == x

This behaviour of == is (I think) unique to the symbolic ring in Sage.
 You can test for equality like this:

sage: dSv-dSvq
0
sage: (dSv-dSvq).is_zero()
True

though in more complicated examples the expessions might have to be
simplified manually.

In general in computer algebra, simplifying an expression which
simplifies to 0 is easier than trying to find two simplifications of
two expressions which appear to be the same.

I'm sure there are computer algebra experts reading this who can
explain it better.

John

2008/9/2 Stan Schymanski <[EMAIL PROTECTED]>:
>
> Dear all,
>
> I must be doing something wrong here, but I don't know what. I'm sure
> someone will see it straight away:
>
> --
> | SAGE Version 3.1.1, Release Date: 2008-08-17   |
> | Type notebook() for the GUI, and license() for information.|
> --
>
> sage: var('myuv myub q qvb qbv')
> (myuv, myub, q, qvb, qbv)
> sage: dSv=myuv*qvb - myuv*qbv
> sage: dSvq=myuv*qvb - myuv*qbv
> sage: dsage: dSv-dSvq
> myuv*qvb - myuv*qbv == myuv*qvb - myuv*qbv
>
> Why does SAGE not return 'true'?
>
> Just pointing me to the right page in the docu would help, too! Thanks
> already.
>
> Stan
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] testing for equality

2008-09-02 Thread Stan Schymanski

Dear all,

I must be doing something wrong here, but I don't know what. I'm sure
someone will see it straight away:

--
| SAGE Version 3.1.1, Release Date: 2008-08-17   |
| Type notebook() for the GUI, and license() for information.|
--

sage: var('myuv myub q qvb qbv')
(myuv, myub, q, qvb, qbv)
sage: dSv=myuv*qvb - myuv*qbv
sage: dSvq=myuv*qvb - myuv*qbv
sage: dSv==dSvq
myuv*qvb - myuv*qbv == myuv*qvb - myuv*qbv

Why does SAGE not return 'true'?

Just pointing me to the right page in the docu would help, too! Thanks
already.

Stan
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: putting an image in the notebook

2008-09-02 Thread Stan Schymanski

I found this post when facing a similar problem. In a different post,
I read that any html code can be placed between the cells if we edit
the plain text version of the notebook. However, if I try linking to
an image in my file system, it is not displayed.  does not seem to find the file, while this is not a
problem on my system if I create a 'normal' html page. Is there a
simple explanation and/or workaround for this?

Stan

On Aug 4, 6:12 pm, polo0691 <[EMAIL PROTECTED]> wrote:
> This works great thanks!
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---