Ask Your Question

sagenibble's profile - activity

2021-01-08 18:35:40 +0200 received badge  Famous Question (source)
2020-10-13 05:52:30 +0200 received badge  Famous Question (source)
2018-12-02 19:07:39 +0200 received badge  Notable Question (source)
2018-12-02 19:07:39 +0200 received badge  Popular Question (source)
2016-05-12 18:28:59 +0200 received badge  Popular Question (source)
2016-05-12 18:28:59 +0200 received badge  Notable Question (source)
2016-01-18 11:29:39 +0200 commented answer Cast expression to rational number

Interesting, but is there no way to force the Symbolic Ring to produce a flattened number?

2016-01-14 17:20:03 +0200 received badge  Student (source)
2016-01-14 16:53:30 +0200 asked a question Cast expression to rational number

Hello,

I am trying to perform the ceil() function on the result of a square root operation. My code is as follows:

x = 10
x = x.sqrt()
x = x.ceil()

However, I get the following error:

AttributeError: 'sage.symbolic.expression.Expression' object has no attribute 'ceil'

I have tried searching the the documentation, but I can't seem to find a straight forward way to "flatten" this expression to a rational number. How can I go about this?

Thanks,

2015-10-28 01:20:04 +0200 received badge  Scholar (source)
2015-10-27 11:31:50 +0200 asked a question Modifying x-axis/y-axis with plotting

Hello,

I have been looking at the sage documentation, particularly at the plot function: http://doc.sagemath.org/html/en/refer...

I notice that in the examples they have a means of restricting the x values, like so:

plot(x^2, (x, 0, 10))

However, I can't seem to find any documentation on this feature. The function definition for the plot function does not many any mention of being able to do this, so it follows that I am not entirely sure what exactly I can do with this feature..

Can someone be of assistance in helping me figure out where this is document, if anywhere?

Additionally, is there a way then to modify the scale of the x/y axis with the plot function, or modify the steps between displayed values?