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 create a function whose output is either 1 or -1?
Posted 25 mag 2017, 11:59 GMT-4 Materials, Parameters, Variables, & Functions 2 Replies
Please login with a confirmed email address before reporting spam
Hello everyone,
I would like to create a function that only gives the result of either 1 or -1.
But the probability for these two different results depends on a time-varying variable defined in COMSOL.
For example, at t0, the probability for 1 is 70%, and at t1, it might decrease to 54%, and so on.
Does anyone know how to do this in COMSOL?
I would like to create a function that only gives the result of either 1 or -1.
But the probability for these two different results depends on a time-varying variable defined in COMSOL.
For example, at t0, the probability for 1 is 70%, and at t1, it might decrease to 54%, and so on.
Does anyone know how to do this in COMSOL?
2 Replies Last Post 25 mag 2017, 22:18 GMT-4