Function as variable for another function

Function as variable for another function - Is it possible to use function as variable for function if in this functon is if statement.. - Messages

#1 Posted: 9/27/2020 5:24:11 PM
Rihards

Rihards

0 likes in 2 posts.

Group: User

function doesnt work if in argument function there is if

is it possible to add function as argument to another function if in that function is if statement?
#2 Posted: 9/27/2020 5:41:02 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

I guess that you have an unit issue, instead to ask "x=1" try with "x=1*'m".
Best regards
Alvaro.

#3 Posted: 9/27/2020 5:51:46 PM
Rihards

Rihards

0 likes in 2 posts.

Group: User

Quote

I guess that you have an unit issue, instead to ask "x=1" try with "x=1*'m".
Best regards
Alvaro.



no i tried with out any units.. as far as i can tell its if there is if in the function i cant use it as argument for another function even if it plots perfect as i imagine..111fff.PNG

so i played around even further:
it seems that: i can make boolean operations with x and i can use if if x is not evaluated.. but if in if statement there is x then it shows that x is not defined.? is this bug?
#4 Posted: 9/27/2020 7:46:38 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

This is an "if-issue". It can't be integrate, nor derivate (sometimes) and also can't be called in this way. As workaround use cases.

Clipboard01.jpg

Best regards.
Alvaro.
#5 Posted: 9/27/2020 8:45:03 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

If you have no plot => you have no project.

PlotFirst.PNG
#6 Posted: 9/27/2020 9:07:15 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Smath Bible is largely in Samples

Integrate Discontinuous_1.sm (24 KiB) downloaded 39 time(s).
#7 Posted: 9/27/2020 9:17:25 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Integral 0Discrete Cumulative 10 styles.sm (179 KiB) downloaded 33 time(s).
  • New Posts New Posts
  • No New Posts No New Posts