sin(x)= x - x3 / 3! + x5 / 5! - x7 / 7!.... C#代码? [英] sin(x) = x - x3/3! + x5/5! - x7/7!.... C# code?

查看:417
本文介绍了sin(x)= x - x3 / 3! + x5 / 5! - x7 / 7!.... C#代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我如何写sin(x)代码?

尴尬地问这个简单的问题,但我卡住了。

please tell me how do i write sin(x) code?
its awkward to ask this simple question, but im stuck.

推荐答案

我再次回到你之前关于这个主题的问题,我注意到它已经神秘地消失了......但答案没有改变:你已经获得了算法,你已经获得了C语言的实现 - 你们必须要做的就是完成你的作业是写自己的代码。



我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!



它并不完全复杂:一个循环,只包含两行代码!
I refer you back to your previous questions on this subject, which I note have mysteriously vanished...but the answers don't change: you have been given the algorithm, you have been given an implementation in C - all you have to do to complete your homework is write your own code.

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

It's not exactly complicated: one loop, and that contains only two lines of code!


你一遍又一遍地问同样的问题。



参见 http://msdn.microsoft.com/en-us/library/system.math.sin(v = vs.110).aspx [ ^ ]



如果你坚持某些特定的东西,那就问一些特定的东西。该链接包含示例代码和文档。这就是你需要的一切。
You keep asking the same question over and over.

See http://msdn.microsoft.com/en-us/library/system.math.sin(v=vs.110).aspx[^]

If you are stuck on something specific then ask something specific. That link has sample code and documentation. It's everything you need.


这篇关于sin(x)= x - x3 / 3! + x5 / 5! - x7 / 7!.... C#代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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