GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • YALMIP
  • Download
  • Tutorials
  • Examples
  • Inside
  • Commands
  • Solvers
  • Index
  • FAQ
  • References
  • Forum
  • Search
  • sdpvar
  • optimize

This view

  • Original page
  • New address

GeezerVison is showing yalmip.github.io — int

int symbolically integrates a polynomial expression

Syntax

F = int(f,x,from,to)

Examples

With only 1 argument, integration is performed with respect to all involved variables (no constant added)

sdpvar x1 x2
p = 4*x1^4 + x1*x2;
sdisplay(int(p))
0.2500*x1^2*x2^2+0.8000*x1^5*x2

Giving a second argument controls which variables to integrate.

sdisplay(int(p,x2))

Integration over an interval, with possibly symbolic limits, is done by supplying a third and fourth argument.

sdpvar T
sdisplay(int(p,[x1 x2],[0 0],[1 T]))
0.8000*T+0.2500*T^2

Indefinite integration is obtained by supplying no limts as above. For a mixture of indefinite and intervals, set the upper limit to the variable it self

sdisplay(int(p,[x1 x2],[0 0],[1 x2]))
0.8000*x2+0.2500*x2^2

Comments

If you only want to have a function returning a numerical computation of an integral to be used, e.g., in nonlinear programming, you can use the strategy descibed in blackbox.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.