symbolic function with specific properties

조회 수: 1 (최근 30일)
Michal
Michal 2019년 10월 22일
I need to implement the symbolic function E(m(x)), where x = [x1, ..., xN] are symbolic variables, with the folowing property:
  1. m(x) is monomial of x .... m(x) = x1^p1 * x2^p2 * ... * xN^pN, where pj >=0 ... integer power value, j = 1,2,...,N
  2. E(m(x)) = E(x1^p1 * x2^p2 * ... * xN^pN) = E(x1^p1) * E(x2^p2) * ... * E(xN^pN)
  3. E(c) = 0, where c is any other symbolic value
Examples:
E(x1^2*x2) = E(x1^2)*E(x2)
E(x1*x2^3*x3) = E(x1)*E(x2^3)*E(x3)
E(2) = 0
E(a*b) = 0
E(c^3) = 0
Any hints?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by