Question

newtons non linear method

% start iteration loop clear all x2 = [1 0.5]'; x1 = sqrt(4-(4*x2.*x2)); % satisfies eqn. 1 xold = [x1 x2 ]';...

12 months ago | 0 answers | 0

Question

non linear equation using newtons method

% start iteration loop if x2 == 1.0, x2 = 1.001; end % don't allow x2 = 3 as guess x1 = sqrt(4-(4*x2.*x2)); ...

12 months ago | 1 answer | 0

Question

analytical solution of ODEs

%calculating the analytical solution for d^2T/dr^2 + 1/r dT/dr = 0 syms r r = linspace(0.005,0.1,10); dT = dsolve('1*D2r+((...

1 year ago | 1 answer | 0

Question

Stoichiometric coefficient using matrix

%finding the appropriate stoichiometric coefficients for the folowing equation a1FeS + a2O2 = a3FeO + a4SO4 % Fe balance coeffi...

1 year ago | 1 answer | 0

Question

finite difference method code

% set domains limits and boundary conditions xo = pi/2; xf = pi; yxo = 1; yxf = 1; N = 10; % compute interval size and discr...

1 year ago | 1 answer | 0

Question

fscanf problem with reading data

FileID =fopen('relp1.dat','r'); formatSpec = '%d %f'; sizeA=[2 Inf]; A = fscanf(FileID,formatSpec,sizeA) fclose(FileID); ...

1 year ago | 1 answer | 0

Question

using fscanf to open file

clear all TOL=[10^-3 10^-4 10^-5 10^-6 10^-7 10^-8 10^-9] fileID = fopen('relp1.dat'); formatSpec = '%f'; A1= fscanf...

1 year ago | 1 answer | 0

Question

taylor series using forward method

% question 3 part b clc clear all real_val=14301/400; h=[10^-4 10^-3 10^-2 10^-1 10^0 10^1];%step sizes %defining the funct...

1 year ago | 1 answer | 0

Question

taylor series in matlab

Given the function: 5 4 2 f (x) = x^5 - 2x^4 + 3x^2- 1 a. Compute the exact derivative of f(x) at x = 2.1. b. Estimate the fi...

1 year ago | 0 answers | 0

Question

error in arrays line 7

function V = fuelvol2(h) global r H L validInput = true; %to test each value in the vector...

1 year ago | 2 answers | 0

Answered

not enough argument input

ok this is my other command window were the values of T and RH have been defined, but i still get the same error code % th...

not enough argument input

ok this is my other command window were the values of T and RH have been defined, but i still get the same error code % th...

1 year ago | 0

| accepted

Question

not enough argument input

function Td = dew_point(T,RH) a = 17.27; b = 237.7; f = (a.*T)/(b+T) + ln(RH/.100); Td = b.*f ./(a - f); ...

1 year ago | 2 answers | 0