The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Fitting with a summation ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

emmaf

USA
Posts

Posted - 06/27/2007 :  2:36:46 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have some y(x) data that I want to fit using a
function that is a Sum(n=0 -> 10) f(x,n)
So, I basically need to sum over a few values of n.
Is there a way to do it?

Mike Buess

USA
3037 Posts

Posted - 06/27/2007 :  3:00:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This will work but make sure Use Origin C is checked at the bottom.

y = 0;
for(int n=0; n<11; n++)
{
y += f(x,n);
};

Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000