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
 Forum for Origin C
 Get value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

pegor

Germany
Posts

Posted - 05/30/2005 :  09:49:11 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR4
Operating System:Windows xp

Hi,
i have 2 columns in a worksheet, x and y. i want to get the x value wich corresponds to the maximum of y value.does anybody know how to do this.
x.GetXmax(Xmax) this gives me the maximum x value,but this is not what i want, i want the x value wich corresponds to Ymax.

Thanks alot
Pegor

rlewis

Canada
253 Posts

Posted - 05/30/2005 :  09:58:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The following was lifted from Origin's Programming help section


Function: xatymax
Prototype: double xatymax(Curve &crv)

Remarks: Get the value of X at the maximum Y value of a curve.

Parameters: crv=Input Origin C Curve object


Return values: Returns the value of X at the maximum Y value of a curve.


Example:
// Assumes Data1_A and Data1_B exist and contain data
Curve crv("Data1_A","Data1_B");
double dXatYmax = xatymax(crv);
printf("Value of X at maximum Y is %g", dXatYmax);


Summary: Get the value of X at the maximum Y value of a curve.
Sample data:
Header file: data.h
See also: xatymin yatxmin yatxmax xaty50

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