# sachin kansal

### VIT,chennai

Last seen: oltre un anno fa Attivo dal 2020

Followers: 0   Following: 0

I am an undergraduate engineer. my main interest is towards mechanical design and simulations.

All

#### Feeds

Visto da

Risolto

Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

oltre 3 anni fa

Risolto

Draw a '0' in a one matrix!

oltre 3 anni fa

Risolto

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

oltre 3 anni fa

Risolto

Converts numbers into characters
Converts numbers into characters

oltre 3 anni fa

Risolto

Find the max element of the array
Find the max element of the array

oltre 3 anni fa

Risolto

Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

oltre 3 anni fa

Risolto

to the 2 all elements
to the 2 all elements

oltre 3 anni fa

Risolto

the average value of the elements
Calculate the average value of the elements in the array

oltre 3 anni fa

Risolto

Double all elements in the array
Duplicate all elements in the array

oltre 3 anni fa

Risolto

calculate the length of matrix
input 1 array, calculate the length

oltre 3 anni fa

Risolto

Draw a '1' in a zero matrix!

oltre 3 anni fa

Risolto

Find the Pattern 1

oltre 3 anni fa

Risolto

Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

oltre 3 anni fa

Risolto

Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

oltre 3 anni fa

Risolto

Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

oltre 3 anni fa

Risolto

find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

oltre 3 anni fa

Risolto

Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

oltre 3 anni fa

Risolto

Create an anti-identity matrix
Create an anti-identity matrix of given dimension. Examples n = 2 A = [0 1; 1 0] n = 3 A = [0 0 1; 0 1 0; 1 0 0...

oltre 3 anni fa

Risolto

Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

oltre 3 anni fa

Risolto

Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

oltre 3 anni fa

Risolto

Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

oltre 3 anni fa

Risolto

Min of a Matrix
Return the minimum value in the given matrix.

oltre 3 anni fa

Risolto

Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?

oltre 3 anni fa

Risolto

Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

oltre 3 anni fa

Risolto

Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

oltre 3 anni fa

Risolto

Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

oltre 3 anni fa

Risolto

Generate pi using logarithm
Generate pi using logarithm

oltre 3 anni fa

Risolto

Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

oltre 3 anni fa

Risolto

Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

oltre 3 anni fa

Risolto

Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

oltre 3 anni fa