罪的价值问题 [英] Value of sin problem

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

问题描述

我试图根据用户输入的角度来获取sin的值。程序将角度从度数更改为弧度。然后使用公式:

sin(x)= x - x ^ 3/3! + x ^ 5/5! - x ^ 7/7! + x ^ 9/9!...

它一直这样做到15.当我尝试编译我的程序时,它说它没有评估函数。这是我到目前为止:

I am trying to get the value of sin based on an angle input from the user. The program changes the angle from degrees to radians. Then uses the formula:
sin(x) = x − x^3/3! + x^5/5! - x^7/7! + x^9/9!...
It does this all the way to 15. When I try to compile my program it says it doesn''t evaluate to a function. Here is what I have so far:

展开 | 选择 | Wrap | 行号

推荐答案

我是新来的,但让我看看

你确定因子工作方式我从来没有试过这样做我记得曾经写过一个程序,但没有使用它那样我认为你需要在这里使用循环因子

i我不确定

导致错误你说它只需要一个参数

也尝试将float改为double,因为你正在使用power fucntions

,如果你确定的话orial功能工作比通知我我会检查它为我自己并让你知道
I am new to this but let me see
are you sure the factorial works that way i have never tried to do that i remember writting a program once but didnt use it that way i think you will need to use a loop here for factorial
i am not sure
cause the error u get says it take only one argument
also try changing float to double since you are using power fucntions
and if you are sure factorial fuction works than do inform me i will check it for my self and let you know


我不确定是否该阶乘工作。这是我认为可能是错误的一部分。我已经在如何使阶乘工作暂时停滞不前,尽管我在一个月之前做了一个。
I''m not really sure if the factorial works. That was one part that I thought might be wrong. I have been drawing a blank on how to make the factorial work for a while, even though I did one like a month ago.


确定让我们处理阶乘的事情

首先问题是你需要使用while因子的因子
ok so lets work on the factorial thing
first of all does the question says you need to use the while fuctions for factorials


这篇关于罪的价值问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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