Ask your own question, for FREE!
Mathematics 7 Online
OpenStudy (raffle_snaffle):

% MATLAB contains functions to calculate the natural logarithm (log), the % logarithm to the base 10 (log10), and the logarithm to the base 2 % (log2). However, if you want to find a logarithm to another base - for % example, base b - you'll have to do the math yourself with the formula logb(x) = loge(x)/loge(b)

OpenStudy (raffle_snaffle):

@phi

OpenStudy (phi):

what is the question?

OpenStudy (raffle_snaffle):

how do i find another logarithm to another base using the formula above?

OpenStudy (raffle_snaffle):

if you want to find a logarithm to another base - for % example, base b - you'll have to do the math yourself with the formula

OpenStudy (phi):

in Matlab, log(x) means ln(x) if you want base 2 (for example) you would do log(x)/log(2) we know (I hope) \(\log_2(4) = 2\) on the other hand log(4)/log(2) = 1.38629436111989/0.693147180559945= 2

OpenStudy (raffle_snaffle):

i am a little confused. If I want base 2 I need to do log(x)/log(2) ?

OpenStudy (phi):

yes

OpenStudy (phi):

you can test it on your calculator or in matlab

OpenStudy (phi):

Here is a function that does what you want % y = logb(x,b) % returns log_base_b(x) function y= logb(x,b) y= log(x)./log(b);

OpenStudy (raffle_snaffle):

Let me play around with this a bit in matlab. The comment before the last comment I see where you are going.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Mari103: How to pop out like a Jacc In the box
7 hours ago 0 Replies 0 Medals
Breathless: Spooky witch but cute
14 hours ago 3 Replies 0 Medals
Arriyanalol: help
14 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
17 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
17 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!