How can I solve a^i=b in Objective C?

  • Thread starter Thread starter rhenretta
  • Start date Start date
  • Tags Tags
    Algebra
AI Thread Summary
To solve the equation a^i = b in Objective C, where a = 2^(1/12), logarithms are needed. The solution involves using the formula i = log_a(b), which can be expressed as i = ln(b) / ln(a) using natural logarithms. Since Objective C only supports logarithms for bases 2, 10, and e, the natural logarithm can be calculated using the log function. This approach allows for the computation of i effectively. Understanding the relationship between logarithms and exponentials is crucial for solving this problem.
rhenretta
Messages
65
Reaction score
0
My math skills are failing me, and I was hoping one of you could help me with this real quick..

I need to solve for i:
a^{i}=b

a in this case is based on the interval in the musical scale, so
a = 2^{\frac{1}{12}}

I have to solve this in objective c, and apparently it doesn't let me solve logarithms except for bases 2, 10, and e
 
Mathematics news on Phys.org
rhenretta said:
My math skills are failing me, and I was hoping one of you could help me with this real quick..

I need to solve for i:
a^{i}=b

a in this case is based on the interval in the musical scale, so
a = 2^{\frac{1}{12}}

I have to solve this in objective c, and apparently it doesn't let me solve logarithms except for bases 2, 10, and e

Hey rhenretta.

This kind of problems what is called logarithms. Basically logs and exponentials are inverses in that log(e^x) = x and e(log(x)) = x for valid x's. So we have:

log_a(a^{i}) = log_a(b) gives us
i = log_a(b) = \frac{ln(b)}{ln(a)}

where ln(x) is the natural logarithm function.
 
Thanks chiro :)
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top