Ask Your Question

nerak99's profile - activity

2022-05-04 17:04:54 +0200 edited question composite function simplify expressions and strings

composite function simplify expressions and strings I am using code like x=simplify(f(g(g(h(f(g(f(g(f(k)))))))))) t

2022-05-04 17:04:13 +0200 asked a question composite function simplify expressions and strings

composite function simplify expressions and strings I am using code like x=simplify(f(g(g(h(f(g(f(g(f(k)))))))))) t

2022-02-26 15:14:44 +0200 received badge  Notable Question (source)
2022-02-17 16:22:47 +0200 marked best answer Can I expand a composite function symbolically in sage

The title says it all really. I think I can use ‘expand’ but can’t work out the syntax. Eg, given f(x) = a polynomial and g(x) = some other bit of algebra can I expand fg(x)

2022-02-17 16:22:47 +0200 received badge  Scholar (source)
2022-02-03 16:37:28 +0200 received badge  Popular Question (source)
2022-02-03 11:52:07 +0200 received badge  Popular Question (source)
2022-02-03 10:56:19 +0200 commented answer Can I expand a composite function symbolically in sage

Thank you for your prompt response. I will have a go later on today.

2022-02-03 08:36:50 +0200 asked a question Can I expand a composite function symbolically in sage

Can I expand a composite function symbolically in sage The title says it all really. I think I can use ‘expand’ but can’

2019-10-05 15:18:04 +0200 received badge  Popular Question (source)
2018-01-10 22:27:09 +0200 received badge  Famous Question (source)
2017-11-27 18:53:03 +0200 received badge  Famous Question (source)
2017-09-04 22:30:33 +0200 received badge  Popular Question (source)
2017-03-07 13:34:08 +0200 received badge  Good Question (source)
2017-01-10 12:05:32 +0200 received badge  Nice Question (source)
2016-08-31 21:59:59 +0200 received badge  Notable Question (source)
2016-07-13 21:09:24 +0200 received badge  Notable Question (source)
2015-12-31 11:33:06 +0200 received badge  Popular Question (source)
2015-11-08 00:23:25 +0200 received badge  Popular Question (source)
2015-03-10 13:09:16 +0200 commented answer Transferring 3D plots

I can't see the sage command line that you speak of. I am using cloud.sagemath though. I have managed to get jmol import of three.js objects to work. I think that in the screen rendering, three.js is involved.

2015-03-10 00:36:55 +0200 received badge  Taxonomist
2015-03-09 13:38:31 +0200 commented answer Transferring 3D plots

How do I access the context menu in the jmol applet?

2015-03-08 18:56:45 +0200 asked a question Transferring 3D plots

I want to export 3D plots from Sage in some 3D format or other (NOt just a single png frame)

This script produces a jMol file for me. (I am on cloud.sagemath)

> from sage.interfaces.jmoldata import JmolData 3 sage: JData = JmolData() 4
> u,v = var('u v') 5 f_x = u 6 f_y =
> cos(1*v) 7 f_z = sin(3*v) 8
> img=parametric_plot3d([f_x, f_y, f_z],
> (u, 0, 0.6), (v, 0, 6*pi),
> color='blue', mesh=1, frame=False) 9
> img.save('myfile.png') 10
> img.export_jmol('thisjmol') 11 img 12

The file produced is about 20K or so but if I try to open it via JMol standalone viewer I just get black.

Mind you if I try the example jmols I also get black.

My end point is to get the 3D view into a 3D package such as Blender but to start with I need to get my 3D image out of sage.

Any idea of where I am going wrong?

2014-09-26 13:03:32 +0200 answered a question What am I doing wrong with this function

Duh, I haver to restrict the range on the first function. Sorry

2014-09-26 12:54:31 +0200 asked a question What am I doing wrong with this function

I want to plot a function and its inverse. I issue

F=plot ((2*(x^3-2)),-4,0)
G=plot(sign(0.5*x+2.0)*abs(0.5*x+2.0)^(1/3),-4,0)
F+G

Now 2(x^3-2) is the inverse of (0.5x+2)^(1/3) (I even checked with a well known alternative to sage).

The plots come out with the scale of 2(x^3-2) all wrong. They should (obviously) be reflections in y=x.

Any help much appreciated

2014-09-26 12:51:04 +0200 answered a question Can't get plotting to work

That command does not appear to call plot anyway.

2013-04-23 05:01:27 +0200 asked a question Contour plots

I plotted the vector field like this

p3= plot_vector_field( ((x+4)/sqrt((x+4)^2+y^2)+(x-6)/sqrt((x-6)^2+y^2), y/sqrt((x+4)^2+y^2)), (x, -10, 10), (y, -10, 10))

I would like to do a contour plot where contour joind points at the same value. How do I do that?

2013-03-13 10:56:54 +0200 asked a question sage appliance installation wiki error

There is a place in the Sage appliance wiki that is out of date. I will fix that, meanwhile I put a document at https://dl.dropbox.com/u/79070435/CAS... which describes the sage appliance install with the errors fixed. I would appreciate any comments about this that anyone cares to make.

2013-02-27 05:23:23 +0200 commented answer getting user imput in Python scripts

Absolutely I didn't, sorry about that. I am using sage as a way of allowing children in class to do some Python coding in a situation where the service provider won't allow installation of any programming software.

2013-02-26 17:09:47 +0200 received badge  Supporter (source)
2013-02-26 04:09:24 +0200 asked a question getting user imput in Python scripts

How can I write a script that will get user input when the script runs. I am talking about the sage notebook() here rather than the cli sage.

2013-02-26 04:07:17 +0200 received badge  Editor (source)
2013-02-26 04:06:54 +0200 answered a question Virtual machine appliance

Essentially, the wiki is out of date because the launch is carried out in .xinitrc If you want a multiuser sage then comment out the xinit and shutdown -h now lines in .bash_profile and insert a sage launch line in .bash_profile. The program will now behave as expected.

2013-02-21 06:20:46 +0200 commented question Virtual machine appliance

FYI it appears to launch from .xinitrc. I expect I will be able to fix the thing to work as the wiki describes

2013-02-21 05:57:43 +0200 commented question Virtual machine appliance

Any info about how the launch now works would help me. I just need to intercept where sage is launched and chrome is also launched. Clearly not .bash_profile except via this alias thing?

2013-02-20 21:43:40 +0200 received badge  Student (source)
2013-02-20 17:35:14 +0200 asked a question Virtual machine appliance

The sage appliance wiki suggests editing the sage user .bash_profile as follows

"and replace the line

./sage -notebook interface=\'\' port=8000 open_viewer=False require_login=False

with

./sage -notebook interface=\'\' port=8000 open_viewer=False require_login=True secure=True

however the 5.6 appliance does not have thses lines but merely alias=sage-hg

Where do I alter the notebook launch to make the appliance launch for other users.