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
 Negative differentiation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Clairekun

Germany
175 Posts

Posted - 07/14/2020 :  6:18:41 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System: Windows 10

Hello,

I would need to create a column with the formula -dy/dx, smoothed via adjacent-averaging method. Is there any way to achieve this that wouldn't require me to add 3 extra columns each time (one for dy/dx, a second one for changing previous column sign and a third one for smoothing)? My worksheets already contain multiple columns and I would like to avoid creating any unnecessary ones.

I am using differentiate function since derivative function is no longer recommended, but the options are very limited.

Thank you.

YimingChen

1665 Posts

Posted - 07/15/2020 :  09:38:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

can you set script in Before Formula Scripts? I used LT function and Smooth X-function. see if it works.


Dataset dsC;
dsC = derivativexy(col(A), col(B));
smooth -r 2 method:=aav npts:=9 iy:= dsC oy:= dsC; 






James
Go to Top of Page

Clairekun

Germany
175 Posts

Posted - 07/15/2020 :  11:22:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Working perfectly, thanks so much!

Silly me, I didn't know about dataset object, it makes everything so much easier...
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