有人可以帮忙吗? [英] Can someone help with these?

查看:77
本文介绍了有人可以帮忙吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)S = 1 * 2 + 2 * 3 + 3 * 4 + .... + 19 * 20

2)f = 1 + 1/1!+1/2!+ ... + 1/10!

1)S=1*2+2*3+3*4+....+19*20

2)f=1+1/1!+1/2!+...+1/10!

推荐答案

是.
S = 2660
f = 2.7182818011463845
Yes.
S = 2660
f = 2.7182818011463845


尝试以下操作: http://www.numberempire.com/seriescalculator.php [^ ]
输入范围1到19,公式
Try this: http://www.numberempire.com/seriescalculator.php[^]
Entering the limits 1 to 19 and the formula
n*(n+1)

给出2660
输入范围1到10,公式

gives you 2660
Entering the limits 1 to 10 and the formula

1/n!

给出6235301/3628800
(好吧,如果您对此比较满意,或者可以使用已经发布的值OriginalGriff,则可以使用袖珍计算器来计算该分数)

现在,给定相同的输入,为每个得出相同结果的公式编写一个函数.为此,这些功能将需要实现各个项(例如n*(n+1))的计算,然后将它们相加为一个总数.

试试看,它并不难.

gives you 6235301/3628800
(ok, you can calculate that fraction with a pocket calculator if you''re more comfortable with that, or just take the value OriginalGriff already posted)

Now write a function for each formula that arrives at the same results, given the same inputs. To do that, these functions will need to implement the calculation of the individual terms (e. g. n*(n+1)), and then sum them up to a total.

Give it a try, it''s not so hard.


这篇关于有人可以帮忙吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆