Robert Koslover
                                                                                                                                                    Certified Consultant
                                                         
                            
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 year ago                            
                            
                                2024/05/31 10:24 GMT-4                            
                        
                        Updated:
                            
                                1 year ago                            
                            
                                2024/05/31 10:27 GMT-4                            
                        
                        
                                                    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.
.  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:
                            
                                1 year ago                            
                            
                                2024/06/03 2:26 GMT-4                            
                        
                        
                                                    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.