您的位置首页百科问答

等差数列通项公式的mathematica求法

等差数列通项公式的mathematica求法

的有关信息介绍如下:

等差数列通项公式的mathematica求法

等差数列通项公式的mathematica求法

现在已经知道等差数列 的第一项即首项e 差为d 要求第n项的通项公式是多少

输入 RSolve[{a[n + 1] - a[n] == d, a == e}, a, n]

其中 RSolve 表示求通项公式的意思 a[n + 1] - a[n] == d 表示后一项 a[n + 1] 减去前一项 a[n] 的差是 d a==e 表示第一项是e 总项数是n

输入shift + enter 2键同时按

得到结果 {{a -> Function[{n}, e + d n]}}这里表示的意思是通项a[n]的结果是 e+ d * n

首项括号中的数是0