EEE 306 Lab 2 : Taylor’s error

July 19, 2017
By shp

Problem#1 Find the sum of the n terms for the sequence 1/(x^n) Input: x n output: Term_no sum for all term leading to n Example input: Example Output:   Problem#2 Find the approximation of e^x using maclaurin series for %Ea <n% Input: x n Output: interation_no approximation %Ea for every iteration Example input: 0.5 0.0001

Continue Reading

EEE 306 Lab 1 : Sea(C) is full of fun

July 16, 2017
By shp

Lab 1 consisted of 3 basic c programming problems and a basic introduction to MATLAB. Write a c program to find factorial of a number using recursion. Take a string input and output the reversed string. [Try not to use string library] Take an input n and show a horizontal pyramid eg. n=3 1 22

Continue Reading