Write a simple function using fortran 90: External and Internal function

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии •

  • @torqueRxF
    @torqueRxF 3 года назад +1

    Can you please explain what is the meaning of real(8) and real(4)
    also, while I was writing a statement real::x,y it showed 'unexpected data declaration' what does it mean?

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 года назад +1

      Thanks Animikh for your comment. Real(8) and Real(4) means double precision and single precision respectively. You can also write them as real*4 and real*8 . Here is a link for your reference. www.tutorialspoint.com/fortran/fortran_numeric_precision.htm
      You can define them like the above, i.e real(8) :: x,y
      Please subscribe to my channel for more videos and to support me. Thank you, stay safe

    • @torqueRxF
      @torqueRxF 3 года назад

      @@PhysicsThroughComputation done 👍

  • @AnhVTran2311
    @AnhVTran2311 3 года назад

    Can you explain for me what is the difference between subroutine and function in Fortran? In which cases we should use subroutine? function? thank you for this video.

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 года назад +2

      Thanks for commenting @Anh V. Tran. The main difference between subroutine and function is that function can give single output whereas subroutine can give single as well as multiple output. Please subscribe to my Channel to support me. Stay safe and stay tuned. :)

  • @KNOgbu
    @KNOgbu 3 года назад

    I need help with my FORTRAN code. can you look at my codes?

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 года назад

      Hello Nnaemeka, Sure I will help. Please join our telegram group Physics through computation to post your queries. t.me/PTCbysouvik
      Please subscribe to my channel 😊 and share among your friends. It will motivate me a lot.

  • @ethiofun7423
    @ethiofun7423 3 года назад

    hello friend you help me how i can plot plot diffusion coefficient vs crowded agent using monte carlo method ?

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 года назад

      not entirely clear to me. Please subscribe to my channel and join our telegram group "physics through computation" and put your detailed doubt there.

  • @ethiofun7423
    @ethiofun7423 3 года назад

    can you help me if i will send some code?

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 года назад

      Please join the telegram group or out Facebook group physics through computation. Not possible to say unless until I understand the full problem. That's why I asked you to join any of the group either Facebook or telegram. Post your questions. Then I will see. Both groups named " physics through computation"

  • @ARCG41
    @ARCG41 3 года назад

    hey man, what book did you use to learn FORTRAN? Could you tell me, please.....you are a crack , man =)

    • @PhysicsThroughComputation
      @PhysicsThroughComputation  3 года назад

      Thanks Rafael for your appreciation :) . I mostly learn from internet. There are several books and websites namely tutorialspoint. You can join our telegram channel Physics Through Computation and ask for the reference. I will send the pdfs in the group.