View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0031130 | Community | OCCT:Foundation Classes | public | 2019-11-05 10:56 | 2020-08-03 17:42 |
Reporter | hwliu11 | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | new | Resolution | open | ||
Platform | Intel X86-64 | OS | Windows | ||
Product Version | 7.4.0 | ||||
Summary | 0031130: Foundation Classes - Expr_NamedUnknown get wrong Derivative | ||||
Description | my 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)) | ||||
Tags | No tags attached. | ||||
Test case number | |||||