Ask Your Question

b@nnon.us's profile - activity

2023-07-02 18:50:56 +0200 commented answer Simple Piecewise limit?

Sorry, I think I made a mistake in my origial code, so I used your 'giac' algorithm and all works now. sage: reset() sa

2023-07-02 18:42:39 +0200 commented answer Simple Piecewise limit?

Thank you, but the right limit, .limit(x=-2,algorithm='giac',dir='+'), returns 2. but it should be -5.

2023-07-02 13:36:07 +0200 asked a question Simple Piecewise limit?

Simple Piecewise limit? Here's the question: $$\lim _{x \rightarrow-2} f\left(x\right) =?$$ where $$f\left(x\right)= 3 x

2022-12-03 11:33:13 +0200 commented answer complex limits

Thank you! A link to your answer will be shared with my pre-calculus students. YouTube video link: https://youtu.be/9Ols

2022-12-03 00:58:04 +0200 asked a question complex limits

complex limits Given that $z$ is a complex number of the form $z = a +b i$, where $a, \, b \in \mathbb{R}$, and $\overli

2021-12-27 14:06:36 +0200 commented answer Problems with Sagetex under Texshop

My guide has recently been updated with embedded videos. You may download a copy at: https://www.dropbox.com/s/6zjkacmoo

2021-04-10 23:42:22 +0200 commented question Simplify factorials Question

The answer would look like this: $$(2n+3)(2n+2)(2n+1)(2n)(2n-1) \cdots (2n-n+2)$$ It would have $n+2$ factors. Not very

2021-04-10 23:38:57 +0200 commented question Simplify factorials Question

The answer would look like this: $$(2n+3)(2n+2)(2n+1)(2n)(2n-1) \cdots (2n-n+2)$$ It would have $n+2$ factors.

2021-04-10 23:38:47 +0200 commented question Simplify factorials Question

The answer would look like this: $$(2n+3)(2n+2)(2n+1)(2n)(2n-1) \cdots (2n-n+2)$$ It would have $n+2$ factors

2021-04-10 23:36:57 +0200 commented question Simplify factorials Question

The answer would look like this: $$(2n+3)(2n+2)(2n+1)(2n)(2n-1) \cdots (2n-n+2)$$

2021-03-20 23:58:22 +0200 received badge  Supporter (source)
2021-03-20 23:58:17 +0200 marked best answer Recursive Function Error

I'm trying to write a reciusive function to compute $$S_p=1^p+2^p+3^p+\dots+n^p,$$ where both $n$ and $p$ are positive integers. My Sage code correctly returns $S_1$, but does not work for $p>1$. Any ideas?

I am not a big Sage user, but I am using it as a way to introduce pre-calculus students to CAS. Hopefully, I will be able to share this post with my students, and certainly, give credit to anyone that helps fix this mess.

Here's the code:

sage: reset()
sage: k,n,p=var('k,n,p')
sage: assume(k,'integer')
sage: assume(n,'integer')
sage: assume(p,'integer')
sage: def S(p):
....:     if p == 1:
....:         return n*(n+1)/2
....:     else:
....:         return ((n+1)^(p+1) - n - 1 - sum(binomial(p+1,k)*S(p-k+1),k,2,p))
....: /(p+1)
....:     
sage: S(1)
1/2*(n + 1)*n
sage: S(2)
2021-03-20 23:58:17 +0200 received badge  Scholar (source)
2021-03-20 23:58:11 +0200 commented answer Recursive Function Error

Thank you, Max Alekseyev. I will be sure to share this with my students!

2021-03-20 18:38:37 +0200 commented answer Recursive Function Error

Thank you very much. I Will certainly share this with my students. However, I'm really trying to derive a recursive fun

2021-03-20 18:30:42 +0200 received badge  Famous Question (source)
2021-03-20 18:10:40 +0200 asked a question Recursive Function Error

Recursive Function Error I'm trying to write a reciusive function to compute $$S_p=1^p+2^p+3^p+\dots+n^p,$$ where both $

2021-01-26 23:40:47 +0200 received badge  Student (source)
2021-01-01 17:30:15 +0200 received badge  Notable Question (source)
2020-11-25 19:13:04 +0200 received badge  Popular Question (source)
2020-11-17 14:23:06 +0200 commented question Is there any way to use SageMath on macOS Big Sur??

I had the same/similar issue when upgrading to 9.2. I just downgraded to 9.1 and all is fine.

2020-11-12 19:33:30 +0200 commented question Apple Silicon M1 chip?

I would, but I don't own a new Apple M1 machine.

2020-11-12 00:12:40 +0200 asked a question Apple Silicon M1 chip?

I wonder if the code base for Sage will be recompiled for Apple's new M1 chip. Big Sur's XCode supposedly makes the task easy peasy. However, I doubt anything is easy when dealing with massively complex software. Although I am happy with my Intel-based MacBook Air, I will eventually need to upgrade to Apple Silicon. Any thoughts?