COBOL Compute statement

15 pts.
Tags:
COBOL
How do I specify in COBOL the following arithmetic expression to calculate the value of Y. Y = 1 / (1 + exp(-X)) where exp(-X) is the exponentiation of the negative value of X and X is any numeric value.
ASKED: March 27, 2008  6:42 PM
UPDATED: August 2, 2011  2:21 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Follow this link to the Cobol reference manual on the iSeries Infocenter. Chapter 13 discusses arithmetic operations and has a section on exponetial math.

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books/sc092539.pdf

To save time you can download this PDF to you PC for faster access in the future.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • NarasimhaReddy
    In COBOL Exponentiation operator is **. You can use this in Compute verb as follows. COMPUTE Y = 1 / (1 + (X ** (-X))) for equation = 1 / (1 + exp(-X)) Reply if other clarifications required.
    225 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following