Question

Plot the values for the following N = 10, 10^2 , 10^3,...., 10^10 use log scale...

Plot the values for the following N = 10, 10^2 , 10^3,...., 10^10 use log scale for both axes.

N^1/3 , 10N+3, 3N+10logN, N log N , N-5, N^3, 1.0001^N

Not sure where to start

Homework Answers

Answer #1

MATLAB Code:

close all
clear
clc

N = 10.^(1:1:10);
subplot(241), loglog(N, N.^(1/3)), title('N^1 ^/ ^3')
subplot(242), loglog(N, 10*N+3), title('10N+3')
subplot(243), loglog(N, 3*N+10*log(N)), title('3N+10log(N)')
subplot(244), loglog(N, N.*log(N)), title('Nlog(N)')
subplot(245), loglog(N, N-5), title('N-5')
subplot(246), loglog(N, N.^3), title('N^3')
subplot(247), loglog(N, 1.0001.^N), title('1.0001^N')

Output:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Analysing Asymptotic Bounds (Marks: 3) Prove the following using the definition of asymptotic order notation. Example:...
Analysing Asymptotic Bounds (Marks: 3) Prove the following using the definition of asymptotic order notation. Example: 15n 3 + 10n 2 + 20 ∈ O(n3 ) Hint: Consider C = 15 + 10 + 20 = 45 and n0 := 1. Then 0 ≤ 12n 3 + 11n 2 + 10 ≤ Cn3 for all n ≥ n0. a) n 2 + 3n 2 /(2+cos(n)) ∈ O(n 2 ) b) 2n 2 (log n) ∈ Ω(n(log n) 2 ) c)...
Semi-log graph paper refers to… 1) graph paper that has a semi-logarithmic scale on one of...
Semi-log graph paper refers to… 1) graph paper that has a semi-logarithmic scale on one of the axes 2) there is no such thing as semi-log graph paper 3) a type of graph paper that is no longer used because everything can be done digitally 4) none of these 5) graph paper that has a logarithmic scale on one axis and a linear scale on the other axis 6) a new type of electronic paper made from semiconductors that allows...
1. What is a "log-log" plot? a. A plot on which all quantities are related by...
1. What is a "log-log" plot? a. A plot on which all quantities are related by straight lines. b. A plot of the log of the log of a quantity. c. A plot relating the log of one quantity to the log of another quantity. d. A type of plot that describes the power output of a star. 2. What is the significance of a straight line on a log-log plot? a. It means that the quantities represented must be...
Put the following complexity classes in ascending order. O(n log n) O(n) O(2^n) O(n^3)
Put the following complexity classes in ascending order. O(n log n) O(n) O(2^n) O(n^3)
plot use mat lab -5<n<5 x1[n] =u[n-2]
plot use mat lab -5<n<5 x1[n] =u[n-2]
Use logarithms to solve the following. (a) log (5x – 1) = log (x + 5)...
Use logarithms to solve the following. (a) log (5x – 1) = log (x + 5) (b) log x + log(x – 1)= log (5x) (c) e^(0.4t) = e^8 (d) 3^(5x + 1)= 3^(6 - 3x)
Find the sum of the following series:∞∑n=2 5^n/13^(n+3) Determine whether the following series are con-vergent or...
Find the sum of the following series:∞∑n=2 5^n/13^(n+3) Determine whether the following series are con-vergent or not. Show your work!∞∑n=2 5n^2+ 5n/7n^2+ 3n+ 6
Solve the following recurrence relation using the technique of unrolling T(n) <= 2*T(n/2) + n*log(n), given...
Solve the following recurrence relation using the technique of unrolling T(n) <= 2*T(n/2) + n*log(n), given T(n <= 2) = 1
Matlab Create plot of the following density functions using x values between -10 and 10 with...
Matlab Create plot of the following density functions using x values between -10 and 10 with an increment of 0.02 -Normal cumulative distribution function with mu=1, sigma=1, mu=0, sigma=2, mu=0,sigma=1/2
1.Determine the generation time by using the following formula : Generation time =∆ t log 2...
1.Determine the generation time by using the following formula : Generation time =∆ t log 2 Log n – log N Where: N = number of bacteria at a particular time point during log phase n = number of bacteria at a second time point during log phase ∆t = time (This question was not anwsered in my previos question that i posted , please help. ) (please check the details and information needed on this question in my prevoius...