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.. - 消息

#1 已发布: 2020/9/27 17:24:11
Rihards

Rihards

0个赞,共2个帖子。

组: 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 已发布: 2020/9/27 17:41:02
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

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

#3 已发布: 2020/9/27 17:51:46
Rihards

Rihards

0个赞,共2个帖子。

组: User

引用

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 已发布: 2020/9/27 19:46:38
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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 已发布: 2020/9/27 20:45:03
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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

PlotFirst.PNG
#6 已发布: 2020/9/27 21:07:15
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Smath Bible is largely in Samples

Integrate Discontinuous_1.sm (24.52 KiB)已下载 1208 次。
#7 已发布: 2020/9/27 21:17:25
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Integral 0Discrete Cumulative 10 styles.sm (179.98 KiB)已下载 1172 次。
  • 有新帖
  • 无新帖