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 for Programming
 LabTalk Forum
 integrate
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

shyamigcar2

India
25 Posts

Posted - 06/11/2020 :  04:16:39 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How to integrate or differentiate given a equation like for example

y = ∫(x^3 + 4sinx)dx, lower limit 10; upper limit = 50.

YimingChen

1668 Posts

Posted - 06/12/2020 :  08:41:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please check the figure below:


James
Go to Top of Page

shyamigcar2

India
25 Posts

Posted - 06/12/2020 :  09:31:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for the efforts towards explaining me integration. Thank you very much

But my doubts was not this. I wanted to integrate using the labtalk scripts or using codes in the scripting window. I will be helpful if you can provide me the codes for the same.
Go to Top of Page

YimingChen

1668 Posts

Posted - 06/12/2020 :  09:53:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This should work.


dataset ds1 = data(10,50,0.1);
dataset ds2 = ds1^3 + 4*sin(ds1);
int nn = ds1.GetSize();
double dd = integrateXY(ds1, ds2)[nn];
dd=;


James
Go to Top of Page

shyamigcar2

India
25 Posts

Posted - 06/12/2020 :  10:24:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
In my origin the integrate function is integ1 and the syntax is different. May be because of this reason it did not work.

In origin there is not function to directly integrate a function like in a calculator.
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