Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. mathematical function read from JSON
Forum Updated to NodeBB v4.3 + New Features

mathematical function read from JSON

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 521 Views 2 Watching
  • 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.
  • N Offline
    N Offline
    NotYourFan
    wrote on last edited by
    #1

    Hey,

    i read from a JSON-File some dates (Temperature / light strength etc.)
    Now i should define a mathematical function in my json file (it should be dynamically).
    My problem is that i havent any idea how to do this.

    For exmaple:

    (read_json_date_1 * 1000) + (76.4585 * read_json_date_2) / (M_PI * 4.545687 + 32.1221)
    

    should i write this function in a String?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you explain what you mean by "it should be dynamically" ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • N Offline
        N Offline
        NotYourFan
        wrote on last edited by
        #3

        Hey,

        i should read the function from the JSON.

        It is Possible that die function change ... so it should be changed on JSON and NOT on Qt

        jsulmJ 1 Reply Last reply
        0
        • N NotYourFan

          Hey,

          i should read the function from the JSON.

          It is Possible that die function change ... so it should be changed on JSON and NOT on Qt

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @NotYourFan What do you use for this function? I mean: is it a scripting language? JavaScript? Some custom format? ...?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved