Skip to content
Discussion options

You must be logged in to vote

Instead of the if statement, try multiplying each of the statement with (eta_stripping >= 0) and (eta_stripping < 0) which should define a heaviside function that does what you want.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Hanyu-B
Comment options

@brosaplanella
Comment options

brosaplanella Jul 17, 2023
Maintainer Sponsor

Answer selected by ch662
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants