MSE41 版 (精华区)

发信人: kiowa (算了,我硬挺着吧), 信区: MSE41
标  题: 利用origin作切线的方法
发信站: BBS 听涛站 (Sun May 21 21:19:00 2006), 转信

以前作切线大家都是八仙过海各显神通
现在不用这么累了

File Exchange > Category:Data Exploration > 
   Tangents 
 
 
Author:
 Michael Buess
 Date Added:
 6/9/2005
 
Downloads:
 794
 Last Update:
 3/30/2006
 
Total Ratings:
 6
 File Size:
 2497 Bytes
 
Average Rating:
 
 File Name:
 Tangent.opk
 
Created Using:
 Origin 7.5 
 File Version:
 1.0 
 
Working Versions:
 7.5,7.0
 
License:
 Free
 
 
Summary:
 
Plot the tangent to a curve at a selected point.
 
Description:
 
PURPOSE 
This tool plots the tangent to a curve at a selected point and reports the slope. 

INSTALLATION 
Run Tangent.opk by double-clicking on the file name or dragging it to Origin's program window. Setup creates a two-button toolbar. 

OPERATION 
The Tangent toolbar buttons look and act like the Data Reader and Pointer buttons on Origin's Tools toolbar. Use the Data Reader as usual to get the coordinates of a curve. Press Enter or double-click on a point to plot the tangent to the curve at that point. The slope of the tangent is shown in a text label at the top of the graph. Click the Pointer button to close the Data Reader. (The tangent curve and label will remain.) 

If column B contains the data for the active curve then two columns will be created in the same worksheet: Column Bdrv (not plotted) contains the derivatives of column B and column Btgt contains the tangent data. The column label for Btgt displays the current data point index and tangent slope. If you rename column Btgt a new column Btgt will be created the next time you enter a point with the Data Reader. In that way you can plot multiple tangents to the same curve and keep track of their positions and slopes. 

To keep the tangent curve inside the layer frame as shown in the graph below select Layer on Origin's Format menu, click the Display tab on the resulting dialog and check the Clip Data to Frame option. (Otherwise the tangent curve would extend below the X axis in the figure below.) 

PROGRAMMING NOTE 
Origin C's Curve_derivative function has a smoothness parameter that affects the calculated derivatives and, therefore, the tangent slope. This tool uses the Origin 7.5 default value for that parameter... BSPLN_OFF. If your slopes appear to be wrong you can adjust the smoothness parameter in the file tangent.c. For details, look for Curve_derivative in the index of Origin's Programming Guide. 
 
 
 
提要:
双击运行附件,会多出一个工具栏,用它双击曲线即可
将原数据表中新建的btgt列重命名即可做多条切线
--
最爱麻衣,偶尔饭Garnet Crow


※ 来源:·BBS 听涛站 tingtao.net·[FROM: 59.66.174.*]

附件: Tangent.opk (2497 字节)
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:1.875毫秒