Taylor's Series in Python! || Math - Calculus Python

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

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

  • @ramyhadid
    @ramyhadid 2 года назад +2

    Exactly what I was looking for, programming the cos(x) function from scratch, very clean vid keep it up!

  • @ДенисЛогвинов-з6е
    @ДенисЛогвинов-з6е 2 года назад +1

    Actually, not all infinity differentiable functions can be expressed in terms of Tayor series (0:50).

  • @lyeschouaki6183
    @lyeschouaki6183 2 года назад

    you have a perfect english, how did you perfect it ? you are perfect, what a perfect video, can you perfectly do another one please, PERFECT!

  • @meriemaissiou2930
    @meriemaissiou2930 2 года назад

    Thank you for your upload !

  • @mascot-45b09.
    @mascot-45b09. Год назад

    Can you tell me the command for saving several graphs in multiplot ??? Should i have to open an output file before doing multiplot or is there any command of saving the multiplot files ??? Please tell sir!!!!!

    • @YounesLab
      @YounesLab  Год назад

      I think you can either use the "plt.savefig('name_of_figure')" command or you can press the "save as" button in the Matplotlib window on the top left corner.

    • @mascot-45b09.
      @mascot-45b09. Год назад

      @@YounesLab can i use this in gnuplot??

  • @mascot-45b09.
    @mascot-45b09. Год назад

    How to remove the last term in ap or gp series in python in forloop ?? I mean if sum of series is s=1+3+5+... upto 5 terms what will be the range ??? Please tell sir

    • @YounesLab
      @YounesLab  Год назад

      If i understand correctly your question, to remove the last term in an arithmetic progression (AP) or geometric progression (GP) series in Python using a for loop, you need to know the common difference (in AP) or the common ratio (in GP)
      (For exemple 5-3 = 2 if its a AP, If its a GP it would be 5/3), and then you should use "n_terms - 1" as the range in the for loop in this case it would be 5-1=4.
      Here is a code snippet that shows it:
      #####################
      # Define the common difference and the number of terms
      common_difference = 2 # Change this to your desired common difference
      n_terms = 5 # Change this to the number of terms you want
      # Initialize the sum
      s = 0
      # Iterate through the terms and calculate the sum
      for i in range(n_terms - 1): # Subtract 1 to remove the last term
      term = 1 + i * common_difference
      s += term
      print("Sum of the series:", s)
      #####################
      I hope this answer your question, if not let me know.

    • @mascot-45b09.
      @mascot-45b09. Год назад

      @@YounesLab thank you very much sir. I understand it very well . Thank you so so much 😊😊😊😊

  • @Carlos-qz7ul
    @Carlos-qz7ul 2 года назад

    J'ai liké, sujet bien expliqué. En revanche ça aurait été bien de citer le prénom, l'époque et le lieu où vivait ce savant, on a juste appris qu.il était un 🚹