Forum

    • Register
    • Login
    • Search
    • Categories

    Logarithmic and exponential equations

    General Questions
    2
    3
    326
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • orange
      orange last edited by orange

      Hi
      How can we write logarithmic and exponential equations in setAttribute?
      For logarithmic one, I have an equation like this: -316,2*log(x) + 622,73
      For exponential one, I have an equation like this: 405*x^3 + 200*x^2

      For logaritmic I've tried these but they don't work. For exponentials I don't know how? 🙂

      FXUnit.setAttribute(FXUnit.Gain, -316.2*log(value) + 622.73);	 
      
      FXUnit.setAttribute(FXUnit.Gain, -316.2*ln(value) + 622.73);

      develop Branch / XCode 13.1
      macOS Monterey / M1 Max

      1 Reply Last reply Reply Quote 0
      • Christoph Hart
        Christoph Hart last edited by

        The Math object has all calculus methods:

        Math.log, Math.pow, etc.

        orange 1 Reply Last reply Reply Quote 1
        • orange
          orange @Christoph Hart last edited by

          @Christoph-Hart Thank you so much!!

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          22
          Online

          801
          Users

          5.5k
          Topics

          51.7k
          Posts