[Kst] [Bug 104695] New: Problems in the equation parser

netterfield at astro.utoronto.ca netterfield at astro.utoronto.ca
Thu Apr 28 13:24:33 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=104695         
           Summary: Problems in the equation parser
           Product: kst
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kst kde org
        ReportedBy: netterfield astro utoronto ca


Version:           1.1.0_beta1 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.3.5
OS:                Linux (i686) release 2.6.9

Equation 1 parses correctly and gives the correct number of
samples per frame:

([GYRO3]*cos([EL]*[C_D2R])-[GYRO2]*sin([EL]*[C_D2R]))

Equation 2 only gives 1 sample per frame, even if interpolate is set (note the unary minus):

-([GYRO3]*sin([EL]*[C_D2R])+[GYRO2]*cos([EL]*[C_D2R]))

Equation 3 complains that the operator needs to operands (note the multiply at the end)

([GYRO3]*sin([EL]*[C_D2R])+[GYRO2]*cos([EL]*[C_D2R])) * -1

Equation 4 works fine, including correct # samples/frame

(-1)*([GYRO3]*sin([EL]*[C_D2R])+[GYRO2]*cos([EL]*[C_D2R]))


More information about the Kst mailing list