Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to compute for an exponential of a number

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
butchichay

New User


Joined: 04 Sep 2006
Posts: 2

PostPosted: Mon Jun 18, 2007 6:58 pm    Post subject: How to compute for an exponential of a number
Reply with quote

Hi,

Would anyone know how to compute for an exponential of a number?

For example,
4^2 = 16

What should i do with 4 to get 16?

Any help would be greatly appreciated.

Thanks!
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jun 18, 2007 7:35 pm    Post subject: Re: EXPONENTIAL Syntax
Reply with quote

butchichay wrote:
Hi,

Would anyone know how to compute for an exponential of a number?

For example,
4^2 = 16

What should i do with 4 to get 16?

Any help would be greatly appreciated.

Thanks!


4 ** 2

Did you try looking in the manual.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Mon Jun 18, 2007 9:01 pm    Post subject:
Reply with quote

** is also fairly conventional, so always a good guess for your test.
Back to top
View user's profile Send private message
butchichay

New User


Joined: 04 Sep 2006
Posts: 2

PostPosted: Tue Jun 19, 2007 11:34 am    Post subject: Re: How to compute for an exponential of a number
Reply with quote

Thanks for the reply!

It was really of big help!
Back to top
View user's profile Send private message
arpita soni

New User


Joined: 19 Jun 2007
Posts: 3
Location: mumbai

PostPosted: Tue Jun 19, 2007 12:27 pm    Post subject: Re: How to compute for an exponential of a number
Reply with quote

Hi,
Kindly let me know the way how to compute the exponential of a number:

e.g:

5 ^ 4

= 32 combinations.

answer to the above query has not been provided.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 19, 2007 2:08 pm    Post subject:
Reply with quote

Hello,

How to calculate an "exponential" is posted already in the topic icon_confused.gif

What does this mean?
Quote:
5 ^ 4

= 32 combinations.
5 raised to the 4th is not 32 - 2 raised to the 4th is 32 and that is what is shown in the previous info.

Please show what you mean by 32 combinations. . .
Back to top
View user's profile Send private message
tosaurabh20

New User


Joined: 08 Jun 2007
Posts: 26
Location: Noida

PostPosted: Tue Jun 19, 2007 5:34 pm    Post subject: Re: How to compute for an exponential of a number
Reply with quote

2 raise to power of 4 is not 32.

it is 2 raise to power of 5 which comes out to be 32.
which can be interpreted as 2**5 in cobol.

Thanks
Saurabh
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 19, 2007 6:31 pm    Post subject:
Reply with quote

Hello,

My bad icon_redface.gif - didn't check well when keying this
Quote:
Quote:
5 ^ 4

= 32 combinations.

5 raised to the 4th is not 32 - 2 raised to the 4th is 32


As has been pointed out, 2 to the 5th is 32. What i was trying to point out is that 5 to the 4th isn't 32 icon_confused.gif (unless that also was a typo. . .

Thanx for the correction icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sequence number add in SORT pshongal SYNCSORT 3 Fri Sep 02, 2016 3:32 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm
No new posts CPU time Vs Number of records Nileshkul JCL & VSAM 5 Mon May 09, 2016 4:05 pm
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us