|
From: Stavros M. <mac...@gm...> - 2025-10-18 22:47:41
|
Thanks for your interest in Maxima!
In addition to Barton's comments, note that your conditional will never
fall through to the third case (oscillatory).
So for *expression: sin(n)* or *n*sin(n)*, it prints that it is convergent.
On Sat, Oct 18, 2025 at 3:21 PM SHIVAMMA K <shi...@gm...> wrote:
> kill(all)$
> expression: (log(n+1)-log(n))/sin(1/n);
> variable: n$
> print("The given sequence is: ", expression)$
> sequence: limit(expression, variable, inf)$
> print("Limit of the sequence as n tends to infinity is: ", sequence)$
> if abs(sequence) = inf then
> print("By the definition, the sequence is divergent")
> else if abs(sequence) # inf then
> print("By the definition, the sequence is convergent")
> else
> print("By the definition, the sequence is oscillatory")$
>
> _______________________________________________
> Maxima-discuss mailing list
> Max...@li...
> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
>
|