View Issue Details

IDProjectCategoryView StatusLast Update
0031130CommunityOCCT:Foundation Classespublic2020-08-03 17:42
Reporterhwliu11 Assigned Toabv 
PrioritynormalSeverityminor 
Status newResolutionopen 
PlatformIntel X86-64OSWindows 
Product Version7.4.0 
Summary0031130: Foundation Classes - 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

Activities

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
2019-12-17 13:28 kgv Product Version => 7.4.0
2019-12-17 13:28 kgv Summary Expr_NamedUnknown get wrong Derivative => Foundation Classes - Expr_NamedUnknown get wrong Derivative