Skip to content

Instantly share code, notes, and snippets.

View vinutah's full-sized avatar

Vinu vinutah

View GitHub Profile
@vinutah
vinutah / q3.m
Last active November 28, 2016 04:26
newtons method
% Individual Dimensions
syms x1
syms x2
syms x3
syms x4
% Column Vector x
x = [x1,x2,x3,x4]'
@vinutah
vinutah / q10.m
Last active November 27, 2016 18:06
Piecewise Interpolation
function [] = q10
% Data Set
X = [0.10, 0.15, 0.20, 0.30, 0.35, 0.50, 0.75];
Y = [3.00, 2.00, 1.20, 2.10, 2.00, 2.50, 2.50];
% Construct Interpolatants
[p1] = polyfit(X,Y,6);
[p2] = spline(X,Y);
[p3] = custom(0.1);
@vinutah
vinutah / adi.c
Last active August 17, 2016 06:09
fault injection algorithm during presage transformation
tt
@vinutah
vinutah / fd1d_heat_explicit_prb.cpp
Created November 7, 2015 16:43
sine inputs and functions
if (strcmp(initialCond,"sin")==0){
for ( j = 0; j < x_num; j++ ){
h[j] = ampl * sin ((3.14 * freq * j ) / x_num) ;
}