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!!!!!
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.
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
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.
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 🚹
Exactly what I was looking for, programming the cos(x) function from scratch, very clean vid keep it up!
Actually, not all infinity differentiable functions can be expressed in terms of Tayor series (0:50).
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!
perfect comment lyes!
Thank you for your upload !
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!!!!!
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.
@@YounesLab can i use this in gnuplot??
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
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.
@@YounesLab thank you very much sir. I understand it very well . Thank you so so much 😊😊😊😊
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 🚹