cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Problem with a function

Ermis76
1-Newbie

Problem with a function

Hi!

At the end of the attached file i have two functiion, the first seems to work fine the second is similiar but doesent return a value. The graph seem to wok tho, why?

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
MikeArmstrong
5-Regular Member
(To:Ermis76)

Does the attached help?

View solution in original post

2 REPLIES 2
MikeArmstrong
5-Regular Member
(To:Ermis76)

Does the attached help?

The function Vbp(x) isn't defined when x > b-1.55, but you are trying to call it with values of x greater than this. You need to specify what the return value should be for all cases for which you call the function. If you want it to be zero for larger values of x then Mike's suggestion is the simplest way of doing this.

Alan

Top Tags