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
Posted 14 gen 2021, 14:50 GMT-5 General, Parameters, Variables, & Functions Version 4.2 1 Reply
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!