Ask Your Question

Boston's profile - activity

2018-12-30 13:02:09 -0500 received badge  Notable Question (source)
2018-09-08 18:15:47 -0500 received badge  Popular Question (source)
2018-03-26 12:53:47 -0500 asked a question Using accented letters in interact selectors

I would like to use accented letters when displaying the options of my input under the selector method. To be more precise, 'I'd like to have ellipsoïde and à deux nappes, for instance. Thanks.

Here is the interact. And here is the code:

quadrics = {'Ellipsoide':x^2+y^2+z^2-1,'Paraboloide elliptique':x^2+y^2-z,'Paraboloide hyperbolique':x^2-y^2-z, 'Hyperboloide une nappe':x^2+y^2-z^2-1,'Hyperboloide deux nappes':x^2-y^2-z^2-1, 'Cone':x^2+y^2-z^2}
def quads(q = selector(quadrics.keys(), label='Quadrique'), a = input_box(default=1, label="$a$"), b = input_box(default=1, label="$b$"), c = input_box(default=1, label="$c$"), r = input_box(default=3, label="$r$")):
f = quadrics[q].subs({x:x/a}, {y:y/b}, {z:z/c})
if a*b*c==0 or q=='Cone':
    pretty_print(latex(f)+'=0 '+'(dégénérée)')
p = implicit_plot3d(f,(x,-r,r),(y,-r,r),(z,-r,r), plot_points = 75, mesh=1, opacity=.7)
2018-01-29 08:11:21 -0500 received badge  Nice Question (source)
2018-01-28 16:20:47 -0500 asked a question plots of complex numbers

Say I want to plot the 6 solutions of the following complex equation.

What is the best practice?

EDIT by @tmonteil: to lower dependency between Sage services in the long term, here is the code provided in the sagecell:

solutions  = solve (z^6==-8, z)
for i in range(0,6):
2018-01-27 12:50:50 -0500 received badge  Supporter (source)
2018-01-25 16:31:39 -0500 asked a question pretty_print in interact labels

I have written the following interact.

How cant I get the labels right? For instance, I'd rather have $N_0$ rather than N0.

Can I achieve this with pretty_print?

2018-01-19 14:11:30 -0500 commented answer @interact : Fix the default rendering

Thanks kcrisman!

2018-01-19 14:11:04 -0500 received badge  Scholar (source)
2018-01-18 09:45:46 -0500 asked a question @interact : Fix the default rendering

I have created the following interact.

It plots the partial sums of a series up to N, et prints out the last one.

The default rendering yields a DeprecationWarning and does not show the partial sum value. When you update the data, the rendering is fine.

How can I fix this?

2015-11-06 19:14:25 -0500 received badge  Famous Question (source)
2015-06-19 18:28:21 -0500 received badge  Notable Question (source)
2015-06-19 18:28:21 -0500 received badge  Popular Question (source)
2014-08-11 10:05:38 -0500 received badge  Student (source)
2014-08-08 10:42:03 -0500 asked a question How to reset variables?

I am using the Sage-6.2 app on an iMac (Mavericks).

I have solved a couple of linear systems in my running worksheet for which the solution set requires a parameter. I am now at 'r7'.

How do I reset this back to 'r1'?

Also, is there something equivalent to Maple's 'restart'?