photo

Harshvardhan


Last seen: 11 months ago Active since 2023

Followers: 0   Following: 0

Message

Programming Languages:
Python
Spoken Languages:
Hindi
Pronouns:
He/him

Statistics

All
  • First Answer
  • Promoter
  • Solver

View badges

Feeds

View by

Solved


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 year ago

Solved


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 year ago

Solved


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 year ago

Solved


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 year ago

Answered
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 year ago | 0

Answered
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 year ago | 0

Answered
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 year ago | 0

Answered
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 year ago | 0

Solved


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...

2 years ago

Solved


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:...

2 years ago