Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2013
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2013 by Ivor Horton; ISBN: 978-1-118-84571-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2013 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 12th, 2015, 04:27 PM
Registered User
 
Join Date: Sep 2014
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default using sqrt function

I am very new to this and my teacher has asked us to write compile and run a program that calculates the fourth square root of 81. using the sqrt function. am so lost please help!!!!!
 
Old March 15th, 2015, 09:55 AM
Registered User
 
Join Date: Mar 2015
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Smile

Are you really sure you need help with that?

Just ask yourself what a fourth square root is...

it's the value that when multiplied by itself four times makes the total
i.e.
x * x * x * x = y

So what does the sqrt() function do?
it takes the second square of a number, i.e.
x * x = y

That means that if we apply that to y i.e.

a = sqrt(y)

a would be the number that makes up the second square root

if we insert y=81 we would get 9, since 9x9=81
now if we break down 9 in it's square root, we get 3, since 3x3 = 9
hence 3x3 x 3x3 = 81

so...

X = sqrt(sqrt(Y));
The Following User Says Thank You to Dhurgan For This Useful Post:
ncidurhed (March 17th, 2015)
 
Old March 17th, 2015, 10:58 AM
Registered User
 
Join Date: Sep 2014
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default thank you so much

thank you so much that makes perfect sense now my teacher is from Taiwan and is very difficult to understand and his handwriting is much worse than mine sometimes soaking in what he is trying to teach is very difficult





Similar Threads
Thread Thread Starter Forum Replies Last Post
search function and trim function sett Excel VBA 1 April 23rd, 2010 09:20 PM
send variable in function to another function schoolBoy Javascript How-To 6 March 3rd, 2007 09:16 AM
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 06:03 AM
retreive function/Line from macro or function? MikoMax J2EE 0 April 1st, 2004 04:42 AM
Help with function... mathe Beginning PHP 3 December 18th, 2003 04:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.