Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

How to do definite integral of user defined function

Please login with a confirmed email address before reporting spam

Hi Everyone,

I am new to comsol (version 4.2) and running into a problem: I defined a global function called generic_pulse_shape_func and I'm trying to evaluate the definite integral of this function (from t=0 to t=50E-9 seconds) and set the value as a global parameter. In global parameters I type in this:

integrate(generic_pulse_shape_func(t),t,0,50E-9)

but the result is not calculated and the text I typed apears orange with a warning: "Unexpected unit of input". Can anyone help me figure out what is going on or how to get around this problem?

Thank you!


1 Reply Last Post 14.01.2021, 14:55 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 14.01.2021, 14:55 GMT-5

In the help files for 4.2 I didn't see a special function for integration. Maybe I'm missing something?

In the help files for 4.2 I didn't see a special function for integration. Maybe I'm missing something?

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.