P.S. This lab is not related to numerical analysis. This lab is about basic C and is on students request. Problem #1 Print a half pyramid #include <stdio.h> int main() { int i, j, n; printf(“\nNumber of line is “); scanf(“%d”,&n); for(i = 0; i < n; i++) { for (j = 0; j <=

# Category: EEE 306

## EEE 306 Lab 2 : Taylor’s error

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

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

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