I’m writing a short function and try to call it in a same file as follows.
a = 1.0:3.0 tfs(a) function tfs(x) n = length(x) m = sum(x)/n s = sqrt(sum((x-m).^2/n)) return m, s end
Of course, I got an error.
ERROR: LoadError: UndefVarError: tfs not defined in include_from_node1(::String) at ./loading.jl:488 while loading /home/chobbes/Documents/git/smsa/test14.jl, in expression starting on line 2
I know there must be something naively wrong. Can anyone give me a hint? Thanks!!