Shreyas Vijay
Skills Acquired at Skill-Lync :
11 Projects
to create row and column vector
clear all close all clc % to create a row matrix a= [1 2 3 4] % to create a column matrix b= [1; 2; 3; 4;]
30 Apr 2018 01:00 AM IST
Comparision of 1st, 2nd and 4th order approximation errors for a range of dx
clear all close all clc %function = sin(x)/x^3 %derivative of function = (x^3*(cos(x) - sin(x)*3*x^2)/x^3 x = pi/3; dx = linspace(pi/4,pi/4000,20); for i = 1:length(dx) [first_order_error(i), second_order_error(i), fourth_order_error(i)] = all_approximations(x,dx(i)); end figure(1) loglog(dx,first_order_error,'color','r')…
20 May 2019 02:44 PM IST
solving ODE of simple pendulum
`(d^2θ)/(dt^2)+(b/m)*(dθ)/(dt)+(g/l)*sinθ=0` The above ODE gives the motion of a simple pendulum. The second order ODE has to be convertedinto two first order ODE. consider θ= θ1 `(dθ)/(dt)=(dθ1)/(dt)=θ2` `(d^2θ)/(dt^2)=(d^2θ1)/(dt^2)=(dθ2)/(dt)`…
10 Apr 2019 04:03 PM IST
optimizing a stalagmite function
Genetic Algorithm Genetic Algorithm (GA) is a branch of field of study called evolutionary comutation. It is based on evolution theory by Darwin. GA is used to optimize a given function to find its maximum or minimum value. The basic components of a GA are 1. fitness function : It is the function that GA is trying…
11 May 2019 10:13 AM IST
stalagmite function
https://projects.skill-lync.com/projects/optimizing-a-stalagmite-function-32889
11 May 2019 10:14 AM IST
forward kinematics of a 2 arm robotic arm
% forward kinematics of two arm robotic arm clear all close all clc %inputs l1= 2; l2=1; theta1= linspace(0,90,10); theta2= linspace(0,180,10); ct=1; %for loop for i= 1:length(theta1) th1= theta1(i); for j= 1:length(theta2) th2= theta2(j); % co ordinates of the two arm robotic arm x0= 0; y0= 0; x1= l1*cosd(th1); y1= l1*sind(th1);…
29 Jan 2019 07:52 AM IST
P V diagram and thermal efficiency of otto cycle
clear all close all clc %state variables p1 = 101325 t1 = 500 t3 = 2300 g = 1.4 %engine parameters b = 0.1 s = 0.1 cr = 12 con= 0.2 % calculating swept_vol and clearance vol v_swept = (pi/4)*b^2*s v_clearance = v_swept/(cr-1) %state 1 v1= v_swept + v_clearance %stage 2 v2 = v_clearance % due to isentropic compression p1*v1^g=p2*v2^g…
18 Feb 2019 07:32 AM IST
curve fitting
clear all close all clc %importing the data data = load('data'); temp = data(:,1); cp = data(:,2); %plotting the original data figure(1) plot(temp,cp,'linewidth',3,'color','b') hold on xlabel('temperature') ylabel('specific heat') %curve fitting %assuming 2nd order equation. predicted_cp = aT + c co_efficients_1 = polyfit(temp,cp,1)…
30 Apr 2019 03:40 PM IST
solving ode of a simple pendulum
https://projects.skill-lync.com/projects/solving-ODE-of-simple-pendulum-92272 the link to the challenge is attached above
10 Apr 2019 04:05 PM IST
comparison between the first, second and fourth order approximations of the first derivative against the analytical or exact derivative.
Discretization is used to solve a partial differential function at discrete spoints in space. It basically converts a PDE into algebraic form using taylor series. clear all close all clc %function = sin(x)/x^3 %derivative of function = (x^3*(cos(x) - sin(x)*3*x^2)/x^3 x = pi/3; analytical_function = (x^3*(cos(x)) - sin(x)*3*x^2)/x^6…
19 May 2019 04:21 PM IST
Flow over Bi-cycle
% program to calculate drag force for a bicycle clear all close all clc %drag force with variable velocity %inputs % drag coefficient c_d= 0.8; % frontal area area=0.5; % density of air density=1.225; % velocity of cyclist velocity= 1:50; %formula drag_force= density*area*velocity.*velocity*c_d*0.5; %plot to generate…
02 Feb 2019 02:45 PM IST
Here are the courses that I have enrolled
Similar Profiles
Ladder of success cannot be climbed with hands in pocket.
The Future in Motion
Give more than what you get you will get more than what you gave
Avid learner