V
V
volerass2021-04-11 16:34:04
Java
volerass, 2021-04-11 16:34:04

How to log?

6072fa905bcdc940705892.png
here is my code for this function

f = Math.log(1/5)*(1+Math.cos(3* t))/Math.log(1/3)*(1+Math.sin(5*t));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-04-11
@zagayevskiy

In Java, Math.log calculates the natural logarithm. Accordingly, you need to change the base of the logarithm in order to calculate correctly.
For example, the logarithm to base b would be Math.log(x) / Math.log(b).
With this knowledge, it will not be difficult to rewrite your expression.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question