Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 832
    • Issues 832
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 240
    • Merge requests 240
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #422
Closed
Open
Issue created Dec 07, 2003 by Kitware Robot@kwrobotOwner

bug in vtkFunctionParser class

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


> Folks, > > I found a bug in vtkFunctionParser class. The attached example illustrates it - > when the Function string is not enclosed in parenthesis, the result of > computation is incorrect. > > Nick Gnedin > > ______________________________________________________________________ > > #include <vtkFunctionParser.h> > > > int main() > { > > vtkFunctionParser *p = vtkFunctionParser::New(); > p->SetScalarVariableValue("a",0.25); > > p->SetFunction("(1-sqrt(a))"); > double r1 = p->GetScalarResult(); > > p->SetFunction("1-sqrt(a)"); > double r2 = p->GetScalarResult(); > > p->Delete(); > > cout << r1 << " " << r2 << "\n"; > > return 1; > }

Assignee
Assign to
Time tracking