Matlab öğrenme arifesindeyim sevgili romalılar. henüz hiçbirşey anlamayan bu bünyeye ödev verildi. yardımsız hiçbirşey yapamayacağımı anladım.

1) Write a program that prints the smallest power of 3 that exceeds 5000.

2) The mathematical expression (1+1/n)n produces better and better approximations to the mathematical constant e=2.718281828459… as n gets large. Write a program to calculate this expression for n taking on successive powers of two: 1, 2, 4, 8, 16… The calculations should be ended when the relative error is less than 1%. Relative error(%)=100xabs(eith_estimate-e(i+1)th estimate)/e(i+1)th estimate

 

1) pastebin.com
2) pastebin.com

dahicocuk
1

mobil görünümden çık