Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Browsing latest articles
Browse All 4 View Live

Answer by John Palmieri for I am trying to plot the following function:x =...

Use `plot(y, (x, 5, 20))` — use `y` instead of `y(x)`. When you pass `y(x)` as an argument, where `y` is a Python function, it gets evaluated right away: it doesn't plug in different values for `x`, it...

View Article


Comment by John Palmieri for I am trying to plot the following function:x =...

To find out if `prime_range` accepts non-integers, you could just try it and see what happens. Try `prime_range(30.438)`.

View Article


Comment by toni for I am trying to plot the following function:x = var('x')...

Thank you! @John Palmieri

View Article

Plotting error message regarding numerical type of function arguments

I am trying to plot the following function: x = var('x') def y(x): return RR(len(prime_range(floor(0.95 * x), floor(1.25 * x))) / round(1.25 * x - 0.95 * x)) I am not sure whether it is...

View Article
Browsing latest articles
Browse All 4 View Live