阴影参数c / c ++ [英] shadowing a parameter c/c++

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

问题描述

编写一个计算函数积分的程序

f(x)=(A * x ^ m)/ [k *(2 * n)!] a / b
从a到b的间隔
(0
a为m的双值和n的非负整数值,

为k和A的双值,以及a的正值为double的值b> a。

调用函数Intgr()来评估积分。


你的主程序应该有三个函数:

Write a program which calculates the integral of the function

f(x)=(A*x^m)/[k*(2*n)!]

on the interval from a to b (0<a<b). In the main program, scanf
a double value for m and a non-negative integer value for n,
double values for k and A, and positive double values for a and b>a.
Call the function Intgr() to evaluate the integral.

Your main program should be followed by three functions:

展开 | 选择 | Wrap | 行号

推荐答案

很抱歉删除了您的代码,但不幸的是发布指南说明您无法在此处发布整个代码库。


您认为问题可能在哪里?顺便说一句,你为什么要授权这个帖子遮蔽参数c / c ++?


Adrian
Sorry for deleting your code, but unfortunately the Posting Guidelines state you cannot post your entire code base here.

Where do you think the problem may lie? BTW, why did you entitle this thread "shadowing a parameter c/c++"?


Adrian


展开 | 选择 | Wrap | 行号


问题在于数学。不是程序本身。程序运行正常。我认为它与功能的分母有关。我不知道我会怎么做阶乘。与n2fact(n)...
the problem is in the math. not the program itself. the program runs fine. im thinking that it has to do with the denominator of the funtion. im not sure how i would do the factorial. with n2fact(n)...


这篇关于阴影参数c / c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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