Ask Your Question

Aleksey_R's profile - activity

2018-10-29 14:09:00 -0600 received badge  Famous Question (source)
2018-08-28 21:54:58 -0600 received badge  Famous Question (source)
2016-05-04 11:23:05 -0600 received badge  Notable Question (source)
2015-11-09 15:01:16 -0600 received badge  Notable Question (source)
2013-11-27 05:45:19 -0600 received badge  Popular Question (source)
2013-10-19 10:14:38 -0600 received badge  Popular Question (source)
2012-09-18 01:28:37 -0600 commented answer Sage cannot find openssl during compilation although it is installed

Thanks a lot! These commands helped!

2012-09-17 12:29:23 -0600 asked a question Sage cannot find openssl during compilation although it is installed

I try to compile Sage-5.3 from sources on OpenSuse 12.2 64 bit. After 'make' I get:

checking for SSL_library_init in -lssl... no

configure: The OpenSSL library is required to build the Sage Notebook.

configure: You might need to execute one of the following (or the equivalent for your

configure: operating system):

configure: sudo apt-get install libssl-dev

configure: sudo yum install openssl-devel

configure: error: Exiting, since the OpenSSL library was not found.

You do not have all of the prerequisites needed to build Sage

from source. See the errors above.

If you would like to try the build anyway (to help porting)

On my system I have:

libgnutls-openssl-devel gnutls libgnutls-openssl27 libopenssl-devel libopenssl-devel-32bit libopenssl0_9_8 libopenssl0_9_8-32bit libopenssl1_0_0 libopenssl1_0_0-32bit openssl

installed.

Please, help me compile sage.

Best regards, Aleksey.

2011-12-02 09:38:38 -0600 marked best answer Substitute list of expressions

The nice solution:

sage: model.substitute_expression(*sol)
x |--> -2.0000000000000031*x^3 + 14.500000000000021*x^2 - 31.500000000000046*x + 23.000000000000028
2011-12-02 09:38:38 -0600 received badge  Scholar (source)
2011-12-02 09:38:16 -0600 commented answer Substitute list of expressions

Thanks! That's really nice solution!

2011-11-30 05:51:52 -0600 received badge  Nice Question (source)
2011-11-29 19:50:02 -0600 asked a question Substitute list of expressions

How is it possible to substitute list of expressions?

For example:

sage: y=[4.0,2.0,5.0,1.0]

sage: x=[1.0,2.0,3.0,4.0]

sage: xy=zip(x,y)

sage: var('a,b,c,d,x')

(a, b, c, d, x)

sage: model(x)=ax^3+bx^2+c*x+d

sage: sol=find_fit(xy,model)

sage: sol

[a == -2.0000000000000031, b == 14.500000000000021, c == -31.500000000000046, d == 23.000000000000028]

Now sol is a list of expressions. How can I substitute it into my model? The only way I found is:

sage: func=model.substitute_expression(sol[0],sol[1],sol[2],sol[3])(x)

sage: func

-2.0000000000000031x^3 + 14.500000000000021x^2 - 31.500000000000046*x + 23.000000000000028

However, the expression like "sol[0],...,sol[3]" seems to be not a good style...

Best regards, Aleksey.

2011-11-29 19:40:54 -0600 commented answer Plot surface given by points

Thanks a lot!

2011-11-17 02:51:32 -0600 received badge  Student (source)
2011-11-16 05:02:20 -0600 asked a question Plot surface given by points

Greetings, colleagues!

Is there any way to plot surface given by points in sage? As far as I know, plot3d can't plot surface by discrete values...

Best regards, Aleksey.

2011-10-18 04:26:14 -0600 commented answer Show long expressions in interactive shell

Thanks a lot, that works! :)

2011-10-18 04:25:33 -0600 received badge  Supporter (source)
2011-10-17 04:29:09 -0600 asked a question Show long expressions in interactive shell

Greatings, colleagues.

I have a problem when I need to display some long formula by means of command show().

For example the following code generates some long formula:

x=var('x') F = integrate(tan(x),x) FF = integrate(F,x)

After that, when I enter:

show(FF)

the generated sage.dvi shows only the part of formula, the rest is cut off by page borders.

Please, tell me how to display long expressions in proper way.