solve symbolic integral for special case values (extract domain from solution?)
이전 댓글 표시
I am trying to take the definite integral of a symbolic function with an extra free variable (ie there's an unknown integer constant k in
). Using int(f,t,a,b) directly gives me a piecewise solution undefined at k=3, but if I use subs(f, k , 3) before integrating I get a valid solution. I know that if I have the solution I can combine it using piecewise, but I'd like to be able to do it more generally.
Is there a way to automatically detect the missing values of k so I can loop over them and add them to the general solution? It would appear to be possible from the defintion of the underlying Mupad object, but I don't know how to get at that from the matlab function.
Better yet, is there a way to force the int function to do that itself?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Special Values에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!