0

pow(2,n) = 2048, so pow(2,10) = 2048, this n = 10?????

Binary address

1st Mar 2024, 12:45 AM
Oliver Pasaribu
3 Answers
+ 2
2ÂčÂč == 2048 n = 11
1st Mar 2024, 12:39 PM
Buterbrod:)
Buterbrod:) - avatar
+ 1
Oliver Pasaribu pow(2,10) is not 2048. Also, how do 'binary address' relate to the question? import java.lang.Math; public class Program{ public static void main(String[] args) { System.out.println("Math.pow(2,10) = " + Math.pow(2,10)); System.out.println("Solve n: Math.pow(2,n) = 2048"); double n = Math.log(2048)/Math.log(2); System.out.println("double n = Math.log(2048)/Math.log(2) = " + n); System.out.println("Math.pow(2,11) = " + Math.pow(2,n)); } }
1st Mar 2024, 1:17 AM
Bob_Li
Bob_Li - avatar
0
5 = 32, 6= 64, 7 = 128, 8=256, 9= 512, 10 =1024, 11=2048. Yes, right, you right. 9=512. Yes, pow(2,11) = 2048. can handle combination of addressing up to 2048 combination Address line range construct of line A0 to A(n-1) => A0 to A10. 16 bit architecture 16 lines from pow(2,0) to pow(2,15), from line AD0 to AD15. So 64 bit architecture has 64 lines of peripheral addressing from AD0 to AD63? transmission of simultaneously of 64 bit or pow(2,64) BITS in a second. Great.
1st Mar 2024, 1:54 PM
Oliver Pasaribu