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
 trouble fitting simple function y=B*(cos(x))^2
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

matsmcfly

2 Posts

Posted - 01/11/2016 :  4:28:59 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I am a regular user of Origin and have used several unique functions for fitting with in the past.

Today I have tried to fit a very simple function; however just can not get it to work. I have a data set to which I am trying to fit the function P = B * cos(x)^2

(NOTE: just to make clear that this is a cos squared term)

P is what I measure; B is a fixed parameter or constant to be evaluated by fitting; and x is what I measure.

Any pointers would be greatly appreciated.

Cheers,
Martin


Origin 2015, SR2. Running on Windows 10 64-bit

matsmcfly

2 Posts

Posted - 01/11/2016 :  4:31:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Data set that I am trying to fit:

A(x) B(y)
50 0.43
70 0.35
90 0.20
110 0.07
130 0.005
Go to Top of Page

Shirley_GZ

China
Posts

Posted - 01/12/2016 :  01:49:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Martin,

You need revise your fitting function as below:
P=A*cos((x-40)*pi/180)^2

As we know, cos(90°)=0. In you experiential data, when X=130, Y is close to 0. So you need add a X offset(about 40 here) on your fitting function. Then you need convert X values in degree to radians values by multiplying by pi/180.

You can see the fitting results I did:


Thanks,
Shirley
Originlab Technical Service Team

Edited by - Shirley_GZ on 01/12/2016 02:09:27 AM
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