adds

Representation the sum of a series of numbers in fortran/c/c++/scilab language :

By: Roshan Padhan (M.Sc Physics, Sambalpur University)

Steps to represent sum of a series of numbers in fortran/c/c++/scilab language

Step-1:
write the series of numbers in a row such the all the columns are separately distinguishable.

Step-2:
Calculate the expression that differs between two consecutive numbers of each term..
(for ex. lets take the 1st and the 2nd number ... then the required expression can be calculated by dividing the 2nd term to the 1st one )

Step-3:
Notice the increment of powers and factorial and used the increment as required.
(powers or multipliers that increases term by term will be written in terms of the increment variable)

Step-4:

(open the language page and start the programming )
Type the basic part that include the print and scan part

Step-5:
Take sum = 0
and term = 1st term of the given series

Step-6:
Start a loop with the calculated increment in step 3

Step-7:
Write in the loop:-
sum=sum+term
term=term*(//calculated expression in step 2//)
and stop the loop

Step-8:
Print the required answer is "sum"
stop and end the program


Let us take an example of sine series in FORTRAN language in the following video




Thanks for watching this video. By: Roshan Padhan


Model syllabus (+3)Downoad

List of all practicals:   Download

Get all Books:  Download
Physics Notes- CLICK
IIT-JAM             JEST                GATE               NET

  • How to Prepare for IIT-JAM  ⇠ ⇠ Click Here
Get everything about your B.Sc (+3) Physics Practical⇠ ⇠Click
                                                         
Contact for content writing:
email : smartbiswa1992@gmail.com

Post a Comment

Previous Post Next Post