Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. f[x_] := Module[{},
  2. If[x > 1, Print["print: ", x]; Message[f::msg, x]];
  3. x];
  4.  
  5. f::msg = "`1` is greater than 1";
  6.  
  7. f[1.2]
  8. (* print: 1.2 *)
  9. (* f::msg f:1.2` is greater than 1 *)
  10. (* 1.2 *)
  11.  
  12. StreamPlot[{f[x], y}, {x, 0, 1.2}, {y, 0, 1}]
  13. (* txt: 1.22403 *)
  14. (* txt: 1.22403 *)
  15. (* ... *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement