HISE Logo Forum
    • Categories
    • Register
    • Login

    Logarithmic and exponential equations

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 487 Views
    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.
    • orangeO
      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 HartC
        Christoph Hart
        last edited by

        The Math object has all calculus methods:

        Math.log, Math.pow, etc.

        orangeO 1 Reply Last reply Reply Quote 1
        • orangeO
          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

          56

          Online

          1.7k

          Users

          11.7k

          Topics

          102.1k

          Posts