Gelöst


Shifting vertically even-degree polynomial's graph by its mean over an interval
Let p be an even-degree polynomial with positive leading coefficient. Consider its vertical translation by shifting its graph by...

4 Tage vor

Gelöst


Translating even-degree polynomial by its vertex to the origin
Let p be an even-degree polynomial such that has a unique vertex (single global extremum). Consider its translation by shifting ...

4 Tage vor

Gelöst


Translating parabola by its vertex to the origin
Given a quadratic polynomial, p(x) = ax^2 + bx + c (a ~= 0), represented by the vector [a b c], consider the translation of the ...

4 Tage vor

Gelöst


Sum of big primes without primes
Inspired by Project Euler n°10 (I am quite obviously a fan). With problem n°250 by Doug, you can find some global methods to co...

9 Tage vor

Gelöst


Find the logic and return the nth number (plus)
This problem is the harder version of Problem 61015 given a sequence of numbers arranged in the following order: A=0,1,3,4,9,1...

9 Tage vor

Gelöst


find the nth number (plus)
this problem is the harder version of Problem 61014. The numbers 2 and 7 are called lucky numbers, an integer containing only t...

9 Tage vor

Gelöst


Find nth number
The numbers 2 and 7 are called lucky numbers, an integer containing only the digits 2 and 7 is also called lucky number. The pro...

9 Tage vor

Gelöst


modular arithmetic
Given three integers a,b and c, find the remainder when a^b is divided by c. Here, a^b will be well beyond the largest 64 bit in...

9 Tage vor

Gelöst


Index one element in each vector of an array along a given dimension
Functions like min and max can return in their second output argument the index of the element in each vector along a particular...

9 Tage vor

Gelöst


Data Regularization
Provided is an m-by-n integer data matrix A whose elements are drawn arbitrarily from a set *S* = [1,2,3,...,S] for any large in...

9 Tage vor

Gelöst


Simulate one complete step in the Biham–Middleton–Levine traffic model
The <http://en.wikipedia.org/wiki/Biham%E2%80%93Middleton%E2%80%93Levine_traffic_model Biham–Middleton–Levine traffic model> is ...

9 Tage vor

Gelöst


Cumulative maximum of an array
Find the cumulative maximum of an array without using the built-in function cummax (and a few others). Your function should act ...

9 Tage vor

Gelöst


Moving Product (Easy)
Given an input array A, write a function *movprod(A,k,dim)* to calculate the moving product over a sliding window of length *k* ...

9 Tage vor

Gelöst


Cumulative minimum of an array
Find the cumulative minimum of an array without using the built-in function <http://www.mathworks.com/help/matlab/ref/cummin.htm...

9 Tage vor

Gelöst


Polar Form Complex Number Entry
Write a function that takes the magnitude and angle(in degrees) of a complex number and returns a complex variable. Positive ang...

9 Tage vor

Gelöst


Area of right triangle
Given a hypotenuse and a leg , calculate the area of right triangle.

9 Tage vor

Gelöst


Falling on the Moon.

9 Tage vor

Gelöst


Zero Out Negative Elements
Write a MATLAB function called zeroNegatives that takes a numeric vector v as input and returns a modified version where all neg...

9 Tage vor

Gelöst


My wife's logic
Its is always the opposite of the causality law, that is to say the opposite of the implication relationship in math/logic terms...

9 Tage vor

Gelöst


Neural Net: Calculate Bias Single Perceptron (AND/NAND/OR/NOR/XOR)
This challenge is to calculate the Neural Net Bias Perceptron vector,P, given X, WH, and WP using ReLU on the hidden layer. Test...

9 Tage vor

Gelöst


Calculate the Number of Moles
The number of moles of a substance is calculated using the formula: Mass (g) = Moles / Molar Mass (g/mol)​ Write a function ca...

11 Tage vor

Gelöst


Count Vowels at Even Indices
Write a function `vowelEvenIndices` that counts the number of vowels (a, e, i, o, u) located at even indices (0-based) in a give...

11 Tage vor

Gelöst


Set the Euler-Mascheroni constant with an identity using available MATLAB functions
Cody Problem <https://www.mathworks.com/matlabcentral/cody/problems/42826 42826> asked us to estimate the <https://en.wikipedia....

11 Tage vor

Gelöst


Sum of proper divisors (aliquot sum)
A proper divisor of a positive integer n is any divisor of n except n itself. The aliquot sum is the sum of all proper divisors....

11 Tage vor

Gelöst


Determine whether a given point is inside or outside a polygon
A closed polygon may be described by an N x 2 array of nodes, where the last node and the first node are the same. Each row of t...

11 Tage vor

Gelöst


For given xx,x, y vectors build spline of x and y and find yy values for xx vector.
For given xx,x, y vectors build spline of x and y and find yy values for xx vector. Example x = [ 1.0000 1.5000 2.00...

11 Tage vor

Gelöst


Find nth triangular number.
Calculate the triangular number of given integer n.

11 Tage vor

Gelöst


Intersection points of a polynomial
Find the intersection points of a polynomial, given by its vector of coefficients with the X-axis and the Y-axis. Input: a poly...

11 Tage vor

Mehr laden