Programming Languages:
Python
Spoken Languages:
Hindi
Pronouns:
He/him
Python
Spoken Languages:
Hindi
Pronouns:
He/him
Feeds
문제를 풀었습니다
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Input...
1년 초과 전
문제를 풀었습니다
Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....
1년 초과 전
문제를 풀었습니다
Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...
1년 초과 전
문제를 풀었습니다
Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...
1년 초과 전
답변 있음
taking the inverse of multiple matrix's
% Define the matrices A = [1 2; 3 4]; B = [5 6; 7 8]; C = [9 10; 11 12]; % Create a cell array of the matrices matrices =...
taking the inverse of multiple matrix's
% Define the matrices A = [1 2; 3 4]; B = [5 6; 7 8]; C = [9 10; 11 12]; % Create a cell array of the matrices matrices =...
1년 초과 전 | 0
답변 있음
create a Moving Box Simulation in 1D
% Set up initial conditions x = [0 10]; % Box starts at position 0, ends at position 10 v = 1; % Box moves at a con...
create a Moving Box Simulation in 1D
% Set up initial conditions x = [0 10]; % Box starts at position 0, ends at position 10 v = 1; % Box moves at a con...
1년 초과 전 | 0
답변 있음
Cos^2(2theta) 3d polar graph in MATLAB
% Define theta and r vectors theta = linspace(0, 2*pi, 360); r = cos(2*theta).^2; % Convert polar coordinates to Cartesian ...
Cos^2(2theta) 3d polar graph in MATLAB
% Define theta and r vectors theta = linspace(0, 2*pi, 360); r = cos(2*theta).^2; % Convert polar coordinates to Cartesian ...
1년 초과 전 | 0
답변 있음
How do you draw a plane on Matlab?
% Define the x-y-z coordinates for the airplane x = [0 1 2 2 0 -2 -2 -1 0 0 0 0]; y = [0 0 0 1 1 1 1 1 2 2 3 3]; z = [0 0 0 0...
How do you draw a plane on Matlab?
% Define the x-y-z coordinates for the airplane x = [0 1 2 2 0 -2 -2 -1 0 0 0 0]; y = [0 0 0 1 1 1 1 1 2 2 3 3]; z = [0 0 0 0...
1년 초과 전 | 0
문제를 풀었습니다
Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...
1년 초과 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
1년 초과 전