Results 1 to 2 of 2

Thread: Exponential calculation

  1. #1
    Join Date
    Apr 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Exponential calculation

    Hi, I am new to qt
    I would like to perform a exponential calculation according to this formula:
    C= C0 * exp (-k * time)

    I would like to construct an interface with 2 fields (C0 and k(constant) where the user fill in these two parameters.

    The results (C) should be presented in a textfield with a new results every second.
    like this (example):
    C1 (1 second) = 0.111
    C2 (2 seconds) = 0.121
    and so on...

    I would appreciate any help!
    Thomas

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Exponential calculation

    Any C++ reference book for the math part.
    From the Qt documentation (Assistant): QDoubleSpinBox, QLabel, QPushButton, QPlainTextEdit, QString, QTimer, Signals and slots, the tutorials and lots of the examples

Similar Threads

  1. QTime to a format which I can use in a calculation
    By Gavin Harper in forum Qt Programming
    Replies: 4
    Last Post: 14th March 2011, 23:15
  2. Point to Pixel Calculation on all screen
    By patrik08 in forum General Programming
    Replies: 0
    Last Post: 3rd April 2008, 08:10
  3. Monetary calculation
    By estanisgeyer in forum General Programming
    Replies: 1
    Last Post: 15th February 2008, 12:35
  4. Compiler's calculation on memory/address
    By vermarajeev in forum General Discussion
    Replies: 3
    Last Post: 10th October 2007, 11:25
  5. what to do during long calculation?
    By Weilor in forum Qt Programming
    Replies: 4
    Last Post: 14th September 2007, 12:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.