I have some quiestions, here is my example script: https://github.com/Ismael-VC/Club_TESCI/blob/master/CODIGO/python_code/matematicas.py
And here is what I have achieved: https://github.com/Ismael-VC/Club_TESCI/blob/master/CODIGO/julia_code/Matematicas.jl a) Is there an equivalent to Python's doctest.testmod() in Julia? http://docs.python.org/2/library/doctest.html b) How can I documment my code, so that calling help shows the info in comments like Python's docstrings? Help on function fgen in module matematicas: fgen(a: int, b: int, c: int) -> '(x1: float, x2: float)' Formula General. >>> from matematicas import fgen >>> # 4x² + 3x - 1 = 0 >>> a = 4; b = 3; c = -1 >>> x1, x2 = fgen(a, b, c) >>> print('x1 = {0}\n' ... 'x2 = {1}'.format(x1, x2)) x1 = 0.25 x2 = -1.0 c) What is the difference between?: - import - include - require - using d) Does my module has to have the same name as the file ie: (Matematicas.jl / module Matematicas)? e) Are these homologus? if !isinteractive() ...tests... end if __name__ == '__main__': ...tests... f) Do I have to export fgen to be able to import it from another module? Or when should I use export? I know there are many noob questions, sorry, ...but I have no hurry! ;-) Thank's in advance! Ismael VC
