Ask Your Question

Alex89's profile - activity

2021-10-14 12:26:12 +0200 commented question Histogram y-axis position

I want the axis to be on the left, even when I have negative numbers. In the middle of the histogram it just looks stran

2021-10-14 12:22:49 +0200 commented question Histogram y-axis position

I want the axis to be on the left. In the middle of the histogram it just looks strange.

2021-10-13 13:18:48 +0200 received badge  Notable Question (source)
2021-10-12 12:45:29 +0200 asked a question Histogram y-axis position

Histogram y-axis position histogram([-3,2,1,3,4], bins=2) Why is the y-axis positioned like that? Can it be fixed?

2021-05-31 18:10:07 +0200 received badge  Popular Question (source)
2020-10-01 19:07:58 +0200 commented question Plot for vectors

Noted. I upgraded and it works. Thanks alot.

2020-10-01 09:50:23 +0200 received badge  Commentator
2020-10-01 09:50:23 +0200 commented question Plot for vectors

Sage 9.0 on Ubuntu 20.04. Guess I gotta change vers.

2020-10-01 00:20:26 +0200 asked a question Plot for vectors
V1 = vector([3,2,1])
V2 = vector([2,3,5])
V3 = vector([1,2,3])

plot(V1, color='red', gridlines='minor') + plot(V2, color='yellow') + plot(V3, color='blue')

What's up with the graph? Why are the lines not shown as vectors and why do they not change color?

2020-09-07 13:56:04 +0200 commented answer plot3d() not working with firefox?

I didn't know what version you wanted me to install so I installed both that are available on Ubuntu-20.04.

firefox-esr 68.12 has the same issue, plot3d() does not show anything.

firefox-esr 78.2 the issue seems to be gone, plot3d() works normal.

2020-09-07 07:47:01 +0200 commented question plot3d() not working with firefox?

sudo apt-get install sagemath

2020-09-06 13:41:13 +0200 commented question plot3d() not working with firefox?

Ubuntu 20.04 / Firefox 80.0.1 / Sage 9.0 / Sage was installed via terminal.

2020-09-06 08:18:44 +0200 asked a question plot3d() not working with firefox?

Yesterday I switched my browser from Chromium to Firefox and when I try to use plot3d() the output shows no graph.

f(x,y) = x^2 + y^2 - x*y
plot3d(f,(x,-8,8),(y,-8,8))

Everything is white where the graph should be. I do see the small i at the bottom right of the window, but nothing else. Am I doing something wrong here?

Ubuntu 20.04 / Firefox 80.0.1 / Sage 9.0 / Sage was installed via terminal.

2020-09-05 21:38:59 +0200 asked a question Plotting in 2D

I have a question about the plots made by SageMath compared to other CAS.

Why does it make the straight line between the two curves? It's like Sage is plotting the vertical asymptote without the user asking for it.

It does this to all the functions in the form of 1/x. I have not seen this type of plotting in Mathematica or Desmos, which made me wonder why the difference. Thanks.

sage: f(x) = x^2/(x+1)
sage: plot(f, (x,-3,2),figsize=10, ymax=8,ymin=-8)

or

sage: plot(1/(x+1), (x,-3,2),figsize=10, ymax=8,ymin=-8)
2020-08-28 22:28:49 +0200 asked a question Issues with solve()

Can anyone please tell me what am I doing wrong here? I always have issues with solve() for some reason.

sage: f(x) = (474.89/265.41)^(1/x) - 1
sage: solve(f(x) == 0.1, x)
sage: [47489^(1/x) == 11/10*26541^(1/x)]
2020-08-16 13:07:58 +0200 answered a question Why can't I solve a simple root equation?

Replacing 0.5 = 1/2 seems to work:

sage: var('x')
sage: solve((x-1)^1/2-(2*x-3)^1/2-(3*x-4)^1/2==0,x)
[x == (3/2)]

If you write the equation into a function you get two different functions for some reason, so I don't really know what the problem is. Maybe the devs can help us here.

sage: f(x)=(x-1)^1/2-(2*x-3)^1/2-(3*x-4)^1/2
sage: g(x)=(x-1)^.5-(2*x-3)^.5-(3*x-4)^.5
sage: plot(f(x),(x,-4,4)) + plot(g(x), (x,-4,4), color='red')
2020-08-15 12:22:36 +0200 received badge  Supporter (source)
2020-08-15 12:22:34 +0200 commented answer Error when trying to integrate

This is perfect. Thank you!

2020-08-15 11:17:55 +0200 received badge  Editor (source)
2020-08-15 11:17:28 +0200 commented question Error when trying to integrate

I did the changes, now I get a wrong answer.

2020-08-15 11:13:34 +0200 commented answer Error when trying to integrate

I don't understand why did you bother to respond if you have no idea why Sage does not compute a definite integral of a normal distribution. And no this is not a homework. I solved it in Desmos in 1 minute. I just wanted to learn how to do it in Sage since I wanted to learn how to use it better. I had no idea that you have to be an expert to even ask questions around here.

2020-08-15 11:03:47 +0200 answered a question Error when trying to integrate

This is what I want to do in Sage. It can be done very easily in Desmos. https://www.desmos.com/calculator/m6g...

I am just trying to do this integral in Sage. When I do it the answer I get is

f(x) = (1/3.33sqrt(2pi))exp((-1/2)((x-9.486)/3.33)^2)

N(definite_integral(f(x), x, 6, 23))

5.35572539176154

2020-08-14 23:36:56 +0200 asked a question Error when trying to integrate

This is what I want to do in Sage. It can be done very easily in Desmos. https://www.desmos.com/calculator/7oc...

I am just trying to do this integral in Sage. When I do it the answer I get is

f(x) = (1/3.33sqrt(2pi))exp((-1/2)((x-9.486)/3.33)^2)

N(definite_integral(f(x), x, 6, 23))

5.35572539176154

2020-05-07 15:00:17 +0200 received badge  Student (source)
2020-05-06 20:15:00 +0200 asked a question Can't plot a function

Hey guys, I'm trying to plot this function into Sage and it does not work for some reason.

g(x) = binomial(3,x)*binomial(3,2-x) / binomial(6,2)

plot(g(x), (x,0,2))

Nothing shows up.

2020-03-29 23:01:05 +0200 marked best answer R plot in sage not showing

Hello, I'm trying to use r.plot() in Sage9.0, but when I do I only get null device 1 as a output in Jupyter. Can someone please tell me what exactly I'm doing wrong here? I'm on ubuntu18.04.

x <- r([1,2,3,4,5]) y <- r([2,3,4,5,2]) r.plot(x)

null device 1