MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031130Community[OCCT] OCCT:Foundation Classespublic2019-11-05 10:562019-11-05 10:56
Reporterhwliu11 
Assigned Toabv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformIntel X86-64OSWindowsOS Version10.0.18362
Product Version 
Target VersionFixed in Version 
Summary0031130: Expr_NamedUnknown get wrong Derivative
Descriptionmy code like this
                TCollection_AsciiString strExpr("cos(x)");
        Handle(ExprIntrp_GenExp) exprIntrp = ExprIntrp_GenExp::Create();
        Handle(Expr_GeneralExpression) genExpr = NULL;
        exprIntrp->Process(strExpr);
        genExpr = exprIntrp->Expression();
        Handle(Expr_NamedUnknown) var = new Expr_NamedUnknown("x");
        std::cout << genExpr->Contains(var) << std::endl;
        Handle(Expr_GeneralExpression) genExpr1 = genExpr->Derivative(var);
        std::cout << genExpr1->String() << std::endl;
        Handle(Expr_GeneralExpression) genExpr2 = genExpr->NDerivative(var, 2);
        std::cout << genExpr2->String() << std::endl;

the result Derivative is 0,in file Expr_NamedUnknown.cxx line 133 (OCC 7.4.0),the code if (me != X) may can be if(!me.IsIdentical(X))
TagsNo tags attached.
Test case number
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-11-05 10:56 hwliu11 New Issue
2019-11-05 10:56 hwliu11 Assigned To => abv


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker