Robert Koslover
Certified Consultant
Please login with a confirmed email address before reporting spam
Posted:
11 months ago
May 31, 2024, 10:24 a.m. EDT
Updated:
11 months ago
May 31, 2024, 10:27 a.m. EDT
Seems to me you could simply piece three linear functions together, using Booleans. That is, (1)write linear functions for each of the three segments, and then (2) where they join, use Boolean expressions. E.g., suppose ya(x) = the first function, yb(x) = the second function, and yc(x) = the third function. Suppose x1=x at the first junction and x2= x at the second junction.
Your composite function is then:
. The Boolean expressions resolve to 1 if true and 0 if false,so that each of your three functions contributes to ytot only over its appropriate domain.
-------------------
Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Seems to me you could simply piece three linear functions together, using Booleans. That is, (1)write linear functions for each of the three segments, and then (2) where they join, use Boolean expressions. E.g., suppose ya(x) = the first function, yb(x) = the second function, and yc(x) = the third function. Suppose x1=x at the first junction and x2= x at the second junction.
Your composite function is then: ytot = ya*(x
Gunnar Andersson
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
11 months ago
Jun 3, 2024, 2:26 a.m. EDT
The Piecewise function type can be used to stitch together the three linear functions without using Boolean expressions.
The Piecewise function type can be used to stitch together the three linear functions without using Boolean expressions.