[sage-support] Re: latex binary and dvips binary

2009-12-16 Thread ma...@mendelu.cz
I think that there are more options how to install things in Cents. If
yum is broken in your instalation, try some other method.

Do you have root ssh acces? If so, I think that easiest method is to
install texlive http://www.tug.org/texlive/

use wget ... to download, unpack and run install script (in text
mode). Do not install all packages - select only the languages you are
interested in and only the architecture which is suitable for your
server.

I have texlive in /opt/texlive and it is O.K. to move the complete
tree to another computers, add binaries to path and everything works
(provided the architecture is the same). So you may try to install on
your computer with the same architecture, test everything and then
move to the server.

Robert

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] [ANN] OpenOpt 0.27 (optimization), FuncDesigner 0.17 (auto differentiation)

2009-12-16 Thread dmitrey
Hi all,
I'm glad to inform you about release of OpenOpt 0.27 (numerical
optimization framework), FuncDesigner 0.17 (CAS with automatic
differentiation, convenient modelling of linear/nonlinear functions,
can use convenient modelling for some OpenOpt optimization problems
and systems of linear/nonlinear equations, possibly sparse or
overdetermined), DerApproximator 0.17 (finite-differences derivatives
approximation, get or check user-supplied).

license: BSD

See also changelog for details: http://openopt.org/Changelog

Regards, D.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: OpenOpt 0.27 (optimization), FuncDesigner 0.17 (auto differentiation)

2009-12-16 Thread Harald Schilly
This is now http://trac.sagemath.org/sage_trac/ticket/7708

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How to find out lisp symbol values using de_solve_Laplace in Sage

2009-12-16 Thread jari-pekka.iko...@kolumbus.fi

  Hello,

  I wrote in Sage:

  maxima.clear('x'); maxima.clear('fnth')

  maxima.de_solve_Laplace(diff(fnth(x),x,60) = fnth(x), [x,fnth], 
  [0,1,5,2,3,65,8,9,5,43,2,4,5,6,5,3,2,4,6,76,8,7,56,4,3,3,4,5,6,8,9,7,5,4,3, 
  4,5,6,7,9,7,5,4,4,3,4,5,6,7,7,6,5,4,3,5,6,6,5,5,4,4])

  and got:

  fnth(x)='ilt((185*?g454^15-198*?g454^14+264*?g454^13-88*?g454^12+533*?g4\
  54^11+168*?g454^10+29*?g454^9+169*?g454^8+67*?g454^7-154*?g454^6-11*?g45\
...
  e^-x/15

  But when I then tried in Sage:

  maxima(':LISP (g454)')
...

 To *evaluate* code in a maxima session, you do:

 maxima.eval(':LISP (g454)')

 In sharp contrast, maxima('...') creates a single Maxima element.

 William Stein
 Associate Professor of Mathematics
 University of Washingtonhttp://wstein.org


Sage actually just 'froze' when I tried one of following after
maxima.de_solve_laplace:

maxima(':lisp (eval g454)')

maxima(:lisp (eval 'g454))

maxima(':lisp (print g454)')

maxima.eval(':lisp (eval g454)')

maxima.eval(:lisp (eval 'g454))

maxima.eval(':lisp (print g454)')

so, Sage couldn't find out the value of g454. Having used Maxima, I
assume g454 is independent of the variables used in Laplace-transform,
but may depend on other variables.

I tried the same in Maxima, and found out, that g454 is not a bound
variable. This probably means, that it is just an independent variable
that was named during Maxima Laplace transform.

So, I will assume g454 to be a 'constant'.

The actual problem includes actually several simultaneous differential
equations including several functions. This can easily be done in
Maxima using desolve (which uses Laplace transform).

But, If I understood correctly, Sage can not call Maxima with several
simultaneous differential equations. To solve this case one should try
to collect information from several separate differential

equations in Sage (???). As I don't know how this is done, I probably
need to solve this in Maxima without Sage and then import the result
in symbolic form to Sage.

Thank you for your help.

Jari-Pekka Ikonen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: latex binary and dvips binary

2009-12-16 Thread Dima Pasechnik
you can install tex in your home directory.

You would not need root permissions for this
(but make sure you have enough disk space - I imagine such providers
have disk quotas; a reasonable installation of tex can easily take
250Mb or so -- you get get away with much less, but this would require
some work)


2009/12/16 Mikie thephantom6...@hotmail.com:
 BlueHost is my webhost.  I have talked to support and they won't
 install latex binary or dvips binary.

 On Dec 15, 11:25 am, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
  I tried yum install textlive and it gave me the following
  error--error accessing file for config file ///etc/yum.conf.
  I can't get to the Package Manager.  It is on BlueHost.

 What is BlueHost? OK:http://www.bluehost.com/

 Maybe you can ask support from this provider?

 Cheers,

 Jaap

 --
 To post to this group, send email to sage-support@googlegroups.com
 To unsubscribe from this group, send email to 
 sage-support+unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/sage-support
 URL: http://www.sagemath.org




-- 
Dmitrii Pasechnik
-
DISCLAIMER: Any text following this sentence does not constitute a
part of this message, and was added automatically during transmission.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: latex binary and dvips binary

2009-12-16 Thread Mikie
I have to do it in my home directory.  I have the two files -- tet-
latex 3.0-33.8.el5.ie386.rpm and tet-dvips 3.0-33.8.el5.ie386.rpm.
This for Centos 5.3.  Now what do I do.

On Dec 16, 5:55 am, Dima Pasechnik dimp...@gmail.com wrote:
 you can install tex in your home directory.

 You would not need root permissions for this
 (but make sure you have enough disk space - I imagine such providers
 have disk quotas; a reasonable installation of tex can easily take
 250Mb or so -- you get get away with much less, but this would require
 some work)

 2009/12/16 Mikie thephantom6...@hotmail.com:





  BlueHost is my webhost.  I have talked to support and they won't
  install latex binary or dvips binary.

  On Dec 15, 11:25 am, Jaap Spies j.sp...@hccnet.nl wrote:
  Mikie wrote:
   I tried yum install textlive and it gave me the following
   error--error accessing file for config file ///etc/yum.conf.
   I can't get to the Package Manager.  It is on BlueHost.

  What is BlueHost? OK:http://www.bluehost.com/

  Maybe you can ask support from this provider?

  Cheers,

  Jaap

  --
  To post to this group, send email to sage-support@googlegroups.com
  To unsubscribe from this group, send email to 
  sage-support+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/sage-support
  URL:http://www.sagemath.org

 --
 Dmitrii Pasechnik
 -
 DISCLAIMER: Any text following this sentence does not constitute a
 part of this message, and was added automatically during transmission.- Hide 
 quoted text -

 - Show quoted text -

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Save to .sage file

2009-12-16 Thread Gennaro Alphonse
Sorry, i'm new using Sage, i'm currently using the version 4.2.1. A
question I have, How can i save a file or worksheet to an .sage
extension file from the notebook?? I see that I only can save to .sws
file.

Another question is to use a .sage file, i need to define it with a
function with the def command, or I can use the function command?


Thanks for the attention.

--Genaro Alfonso

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Save to .sage file

2009-12-16 Thread kcrisman
Dear Genaro,
Thanks for the interest in Sage!

On Dec 16, 10:38 am, Gennaro Alphonse gena...@gmail.com wrote:
 Sorry, i'm new using Sage, i'm currently using the version 4.2.1. A
 question I have, How can i save a file or worksheet to an .sage
 extension file from the notebook?? I see that I only can save to .sws
 file.

Hmm, unfortunately this is not implemented:

1) Because a .sage file is really just a bunch of Python commands plus
Sage pre-parsing, so it can't necessarily contain all the fun things
like the *output* of those commands and the text/TeX commenting one
can do in the notebook.  So in some sense this isn't possible.

2) Because we don't (yet, but soon should) have an easy download
option for just the HTML/text of the worksheet.  However, if you want
to get it, you can click Edit and then just select all the text!  I
don't know if there is any way to get only the commands without
deleting other stuff, though.

I hope this helps, and please ask more if it doesn't!

 Another question is to use a .sage file, i need to define it with a
 function with the def command, or I can use the function command?


This question is less clear.  The function command creates a symbolic
function
sage: f = function('f',x)
sage: f(3)
f(3)
(at least I think it will do this).  If you want to make a callable
function the usual way to do it is:
sage: f(x)=x^2
but if you need something more complicated (that is, non-mathematical
but logical), you will need to create a Python function using def.
sage: def f(x):
 if x5:
return x^3
 else:
return nope, not what I wanted


I'm not sure if this answers your question, though.

- kcrisman

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How to find out lisp symbol values using de_solve_Laplace in Sage

2009-12-16 Thread Jason Grout
Jari-Pekka Ikonen wrote:
 Hello,
 
 
 
 I wrote in Sage:
 
 
 
 maxima.clear('x'); maxima.clear('fnth')
 
 
 
 maxima.de_solve_Laplace(diff(fnth(x),x,60) = fnth(x), [x,fnth], [0,1,5
 2,3,65,8,9,5,43,2,4,5,6,5,3,2,4,6,76,8,7,56,4,3,3,4,5,6,8,9,7,5,4,3,4,5,6,7
 9,7,5,4,4,3,4,5,6,7,7,6,5,4,3,5,6,6,5,5,4,4])
 
 


Sorry; I don't know that much about maxima's differential equation 
solving abilities, but I just did exactly what you typed above, but did 
not see anything about the g* variables you mention below.  This is 
probably because I don't know how to ask maxima for the result. How do 
you do that?  The return text I got was just a restatement of my command 
(de_solve_Laplace(...))


--
| Sage Version 4.2.1, Release Date: 2009-11-14   |
| Type notebook() for the GUI, and license() for information.|
--
sage: maxima.clear('x'); maxima.clear('fnth')
sage: maxima.de_solve_Laplace(diff(fnth(x),x,60) = fnth(x), [x,fnth],
: [0,1,52,3,65,8,9,5,43,2,4,5,6,5,3,2,4,6,76,8,7,56,4,3,3,4,5,6,8,9,7,
: 5,4,3,4,5,6,79,7,5,4,4,3,4,5,6,7,7,6,5,4,3,5,6,6,5,5,4,4])
de_solve_Laplace('diff(fnth(x),x,60)=fnth(x),[x,fnth],[0,1,52,3,65,8,9,5,43,2,4,5,6,5,3,2,4,6,76,8,7,56,4,3,3,4,5,6,8,9,7,5,4,3,4,5,6,79,7,5,4,4,3,4,5,6,7,7,6,5,4,3,5,6,6,5,5,4,4])
sage:



 
 and got:
 
 
 
 fnth(x)='ilt((185*?g454^15-198*?g454^14+264*?g454^13-88*?g454^12+533*?g4\
 
 54^11+168*?g454^10+29*?g454^9+169*?g454^8+67*?g454^7-154*?g454^6-11*?g45\
 
 4^5+112*?g454^4+118*?g454^3+223*?g454^2+49*?g454+118)/(30*(?g454^16+?g45\
 
 4^14-?g454^10-?g454^8-?g454^6+?g454^2+1)),?g454,x)+'ilt((40*?g454^7-137*\
 
 ?g454^6-194*?g454^5-607*?g454^4+124*?g454^3+678*?g454^2+296*?g454-312)/(\
 
 60*(?g454^8+?g454^7-?g454^5-?g454^4-?g454^3+?g454+1)),?g454,x)+'ilt(-(20\
 
 2*?g454^7+29*?g454^6-314*?g454^5-73*?g454^4-292*?g454^3+394*?g454^2-294*\
 
 ?g454-212)/(60*(?g454^8-?g454^7+?g454^5-?g454^4+?g454^3-?g454+1)),?g454,\
 
 x)+'ilt(-(38*?g454^7-198*?g454^6-46*?g454^5+161*?g454^4-226*?g454^3-124*\
 
 ?g454^2+178*?g454+67)/(30*(?g454^8-?g454^6+?g454^4-?g454^2+1)),?g454,x)+\
 
 'ilt(-(227*?g454^3+179*?g454^2+406*?g454+83)/(60*(?g454^4+?g454^3+?g454^\
 
 2+?g454+1)),?g454,x)+'ilt(-(121*?g454^3-457*?g454^2+638*?g454-129)/(60*(\
 
 ?g454^4-?g454^3+?g454^2-?g454+1)),?g454,x)+'ilt(-(260*?g454^3+57*?g454^2\
 
 -166*?g454+33)/(30*(?g454^4-?g454^2+1)),?g454,x)+%e^-(x/2)*(3^(3/2)*sin(\
 
 sqrt(3)*x/2)/10+11*cos(sqrt(3)*x/2)/5)+%e^(x/2)*(-11*sin(sqrt(3)*x/2)/(1\
 
 0*sqrt(3))-cos(sqrt(3)*x/2)/3)+19*sin(x)/10+23*cos(x)/30+87*%e^x/10+29*%\
 
 e^-x/15
 

Thanks,

Jason


-- 
Jason Grout

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How to find out lisp symbol values using de_solve_Laplace in Sage

2009-12-16 Thread ma...@mendelu.cz


On 16 pro, 11:54, jari-pekka.iko...@kolumbus.fi jari-
pekka.iko...@kolumbus.fi wrote:
 But, If I understood correctly, Sage can not call Maxima with several
 simultaneous differential equations. To solve this case one should try
 to collect information from several separate differential

 equations in Sage (???). As I don't know how this is done, I probably
 need to solve this in Maxima without Sage and then import the result
 in symbolic form to Sage.


I think that Sage has commands for solving systems of ODE. Do not
follow the Sage constructions. Look at comands in desolvers.py  ( run
desolvers? in Sage)

There is desolve_system command.

Is this what you need?
Robert



-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How to find out lisp symbol values using de_solve_Laplace in Sage

2009-12-16 Thread jari-pekka.iko...@kolumbus.fi
Hi,

Ok, to solve, say, 253th order system of differential equations with
many functions one can simply write:

y=function('y',x)
y1=diff(y,x,1)
y2=diff(y1,x,2)
y3=diff(y2,x,3)
...
y253=diff(y252,x,253)

z=function('z',x)
z1=diff(z,x,1)
z2=diff(z1,x,2)
z3=diff(z2,x,3)
...
z253=diff(z252,x,253)
etc.

and then rewrite original differential equations for these new
functions. It should then become 1st order differential equation
system.

Eqn1 = (expression of above listed functions)_1 == 1
Eqn2 = (expression of above listed functions)_2 == 1
Eqn3 = (expression of above listed functions)_3 == 1
...
Eqn100 = (expression of above listed functions)_100 == 1
...
Eqn_n = (expression of above listed functions)_n == 1

Then desolve_system can be used to solve the functions
y,y1,y2,...,y253,z,z1,z2,...,z253 etc. If n(number of functions to be
solved), the solution will probably include some independent
constants.

The problem is then, whether original equations can be made 1st order
using this way.

Thank you for your time.

Jari-Pekka Ikonen

On Dec 15, 8:12 pm, ma...@mendelu.cz ma...@mendelu.cz wrote:
 You may want to try Sage 4.3.rc1 and something like this

 sage: y=function('y',x)
 sage: desolve_laplace(diff(y,x,6) == y,y,ivar=x,ics=[0,1,2,5,6,7,3])
 1/6*(sqrt(3)*sin(1/2*sqrt(3)*x) - 3*cos(1/2*sqrt(3)*x))*e^(-1/2*x) -
 1/6*(3*sqrt(3)*sin(1/2*sqrt(3)*x) + 17*cos(1/2*sqrt(3)*x))*e^(1/2*x) +
 1/3*e^(-x) + 4*e^x

 Or install patchhttp://trac.sagemath.org/sage_trac/ticket/6479

 Robert

 On 15 pro, 12:19, Jari-Pekka Ikonen jari-pekka.iko...@kolumbus.fi
 wrote:



  Hello,

  I wrote in Sage:

  maxima.clear('x'); maxima.clear('fnth')

  maxima.de_solve_Laplace(diff(fnth(x),x,60) = fnth(x), [x,fnth], [0,1,5
  2,3,65,8,9,5,43,2,4,5,6,5,3,2,4,6,76,8,7,56,4,3,3,4,5,6,8,9,7,5,4,3,4,5,6,7
  9,7,5,4,4,3,4,5,6,7,7,6,5,4,3,5,6,6,5,5,4,4])

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org