Ask Your Question

Ross1856's profile - activity

2017-05-20 11:54:00 -0600 received badge  Nice Question (source)
2017-05-20 04:32:57 -0600 received badge  Student (source)
2017-05-20 02:48:15 -0600 asked a question Solving returns x

sage: solve(4.94 * 1.062^x == 15, x)

[531^x == 750/247*500^x]

There are other questions that appear to have the same problem, but honestly I don't understand the answers, and this is a much simpler equation. Why doesn't Sage solve it? I can do it in Maple and by hand in vanilla Python with the math module.

2017-05-19 08:38:34 -0600 commented answer Problems with sage solve.

I don't understand the answer. Could you be more explicit, please? I'm having a similar problem:

sage: f=4.94 * 1.062^x

sage: solve(f(x) == 15, x)

[531^x == 750/247*500^x]

2017-05-19 08:37:59 -0600 answered a question Problems with sage solve.

I don't understand the answer. Could you be more explicit, please? I'm having a similar problem:

sage: f=4.94 * 1.062^x

sage: solve(f(x) == 15, x)

[531^x == 750/247*500^x]

2017-05-01 11:00:18 -0600 received badge  Editor (source)
2017-05-01 10:59:12 -0600 asked a question Finding a p-value in goodness of fit test

I'm trying to find the p-value in a goodness of fit test comparing a set of observed values to a set of expected values. In Maple I can do it with ChiSquareGoodnessOfFitTest(Ob, Ex, level = 0.5, summarize = true), but I can't figure out its equivalence in Sage.

There's a function sage.stats.r.ttest(x, y), but when I run it on my sets, it says the p-value is 1 (it's supposed to be 0.00001778, as in Maple).

The sets for reference are expected=[47.04, 25.48, 31.36, 39.2, 25.48, 27.44], observed=[42, 35, 9, 41, 41, 28].

2017-04-28 06:58:17 -0600 commented answer Problem recreating example of normal distribution from TI-Nspire

I'll have to read up on that. Thank you for the reference.

2017-04-28 04:25:59 -0600 received badge  Scholar (source)
2017-04-27 13:16:36 -0600 asked a question Problem recreating example of normal distribution from TI-Nspire

I have to recreate this formula for calculating normal distribution in Sage:

http ://ntaj.dreamhosters.com/ti.jpg

The picture is from TI-Nspire CAS.

What I'm doing is:

sage: f=1/(0.1sqrt(2pi)) * e^((-1/2)*((x-4)/0.1))^2

sage: float(integral(f, 3.9, 4.1))

0.8696735925295498

I can't get the expected result 0.682689 that Nspire gives. Can anyone see why?