数学问题 [英] Math Question

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

问题描述

ansi c中是否有一个函数来执行此操作?


sigma(2 ^ n / n!,0,infinity,n);


语法

sigma(表达式,开始,结束,变量);


可能表达式可能是函数....


我知道你可以使用maple / mathlab做到这一点,但我没有。我是

希望我能找到一个功能或图书馆。


TIA

ja ****** @ netzero.net

is there a function in ansi c that does this?

sigma(2^n/n!,0,infinity,n);

syntax
sigma(expression, start, end, variable);

may be expression could be a function....

I know you can do this with maple/mathlab, but i don''t have it. I was
hoping there was a function or a library I could get.

TIA

ja******@netzero.net

推荐答案

开2004年4月28日星期三,Quackker12写道:
On Wed, 28 Apr 2004, Quackker12 wrote:
ansi c中是否有一个函数来执行此操作?

sigma(2 ^ n / n!,0 ,无穷大,n);

语法
sigma(表达式,开始,结束,变量);

可能是表达式可能是一个函数....

我知道你可以用maple / mathlab做到这一点,但我没有。我希望有一个函数或库我可以得到。
is there a function in ansi c that does this?

sigma(2^n/n!,0,infinity,n);

syntax
sigma(expression, start, end, variable);

may be expression could be a function....

I know you can do this with maple/mathlab, but i don''t have it. I was
hoping there was a function or a library I could get.




标准C库中没有任何东西,但我会想象有

库可以做你想要的。您可能想看看是否有任何数学新闻组。我猜他们可以帮助你。我是

假设您不想购买商业图书馆并且希望获得一个

免费解决方案。


如果你愿意购买东西来解决问题,那么可能会购买

Maple或MatLab将是你最好的选择。我工作的大多数人都会去购买
MatLab及其C可调用库。


-

发送电子邮件至: darrell at cs dot toronto dot edu

不要发送电子邮件至 vi************@whitehouse.gov


2004-04-29,Quackker12< ja *** ***@netzero.net>写道:
On 2004-04-29, Quackker12 <ja******@netzero.net> wrote:
ansi c中是否有一个函数来执行此操作?

sigma(2 ^ n / n!,0,infinity,n);

语法
sigma(表达式,开始,结束,变量);

可能是表达式可能是一个函数....


你不是真的描述语义,但是......
我知道你可以用枫/数学运算来做到这一点,但我没有。我希望有一个函数或库我可以得到。
is there a function in ansi c that does this?

sigma(2^n/n!,0,infinity,n);

syntax
sigma(expression, start, end, variable);

may be expression could be a function....
You don''t really describe the semantics, but...
I know you can do this with maple/mathlab, but i don''t have it. I was
hoping there was a function or a library I could get.




好​​的,但是,YOMAD:


double

c_sigma(double(* sigma_expr)(int n),int start,int end)

{

double x = 0 ;

int n = start;


if(start> end){

n = end;

end = start;

}


for(;;){

x + = sigma_expr(n);

if(n ++ == end)break;

}

}


- James



Ok, but, YOMAD:

double
c_sigma(double (*sigma_expr)(int n), int start, int end)
{
double x = 0;
int n = start;

if (start > end) {
n = end;
end = start;
}

for (;;) {
x += sigma_expr(n);
if (n++ == end) break;
}
}

-- James


Quackker12写道:
Quackker12 wrote:
ansi c中是否有一个函数可以做到这一点?

sigma(2 ^ n / n!,0,infinity,n);

语法
sigma(表达式,开始,结束,变量);

可能是一个表达式可能是一个函数。 ...

我知道你可以使用maple / mathlab做到这一点,但我没有。我希望有一个功能或图书馆我可以得到。

TIA

ja ****** @ netzero.net
is there a function in ansi c that does this?

sigma(2^n/n!,0,infinity,n);

syntax
sigma(expression, start, end, variable);

may be expression could be a function....

I know you can do this with maple/mathlab, but i don''t have it. I was
hoping there was a function or a library I could get.

TIA

ja******@netzero.net




没有标准C库定义的标准函数

这个。你必须实现你的(或使用谷歌获得相关的

库;))。



There is no standard function as defined by standard C library to do
this. You got to implement yours ( or use google to get the relevant
library ;) ) .


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

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