IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

6th root of a number


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vpr_118
Warnings : 1

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Wed Sep 09, 2009 6:18 pm
Reply with quote

Hi,
Can any one tell me how to calculate 6th root of a number using assembler
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


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

PostPosted: Wed Sep 09, 2009 6:23 pm
Reply with quote

Just automate the process you would use to calculate it manually.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Sep 09, 2009 6:33 pm
Reply with quote

techncally correct but useless answer
the same way as in any other language
determine the algorithm to be used
write the code icon_biggrin.gif

an embarassing question, where do You stand as far assembler skills ?

what have You tried so far, have You determined the algorithm/formulas to use

that' s not something that we do every day, so the answers might not be as benevolent as You would expect

what would be wrong in doing it in a high level programming language

if You really want to do it in assembler ( as framework ) investigate the use of the LE mathematical subroutines

www-03.ibm.com/servers/eserver/zseries/zos/le/conference/pdf/ny8243.pdf
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Sep 09, 2009 6:51 pm
Reply with quote

Click on the links below and review the different flavours of the Assembler Square Root instruction (watch the wraparound) -

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dz9zr003/18.2.18?ACTION=MATCHES&REQUEST=Root&TYPE=FUZZY&SHELF=DZ9ZBK03&DT=20040504121320&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dz9zr003/19.4.22?ACTION=MATCHES&REQUEST=Root&TYPE=FUZZY&SHELF=DZ9ZBK03&DT=20040504121320&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT

I can truthfully say that I've never used these instructions, so you're blazing new trails. icon_wink.gif

Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
No new posts Cobol program with sequence number ra... COBOL Programming 5
Search our Forums:

Back to Top