A résolu


Getting values from a vector
This exercise is for finding the values that meet your criteria. a = [-5 28 7 83 73]; b = 23 ; c = (a > b) Then : c = ...

environ 2 mois il y a

A résolu


Compute the polylogarithm for real arguments
The polylogarithm appears in quantum statistics and quantum electrodynamics, and for special cases of and , it connects to the...

environ 2 mois il y a

A résolu


ICFP 2023 Orchestra: Score Optimization of Puzzle-17 Second point
The ICFP 2023 Competition in July was to place musicians on a stage to maximize the attendees net Joy. The ICFP 2023 Orchestra ...

environ 2 mois il y a

A résolu


Integrate a Power-Tower of a Function
Write a function to compute this integral: Where the function, F(x), will be provided as an Anonymous function of x, and th...

environ 2 mois il y a

A résolu


Create rectangular function.
Rectangular function - Wikipedia

environ 2 mois il y a

A résolu


Count paths between corners of a grid that remain on or below the diagonal
Consider motion from the lower left corner of a square grid to the upper right corner. The motion is constrained in two ways: (1...

environ 2 mois il y a

A résolu


Count the ones in a divisibility matrix
Cody Problem 59506 asked solvers to compute the determinant of matrix consisting of ones in the first column and anywhere the ro...

environ 2 mois il y a

A résolu


Compute the determinant of a divisibility matrix
Consider a matrix consisting of ones in the first column and anywhere the row index divides the column index. The 4x4 matrix is ...

environ 2 mois il y a

A résolu


Compute the sum of distances from a point to the sides of an equilateral triangle
Write a function to compute the sum of the (shortest) distances from a point inside an equilateral triangle to the sides of the ...

environ 2 mois il y a

A résolu


Quasi-Carmichael Numbers
Determine if the provided inputs are Quasi-Carmichael numbers and output a logical matrix of the same size as the input.

environ 2 mois il y a

A résolu


Minimum, Maximum, and Number of Primitive Roots Modulo (m)
This is a continuation of problem 59212, find the number of primitive roots modulo (m) and output the minimum and maximum of tho...

environ 2 mois il y a

A résolu


Carmichael Function
Compute the carmichael function for the input.

environ 2 mois il y a

A résolu


Determine pressure altitude using field elevation and altimeter setting
Given an airfield's elevation in feet (ft) and the current altimeter setting in inches of mercury (inHg), calculate the pressure...

environ 2 mois il y a

A résolu


Determine ground distance from an aircraft to a DME station
In aviation, distance measuring equipment (DME) uses radio signals to determine slant distance from an aircraft to a ground stat...

environ 2 mois il y a

A résolu


Basic Matlab Operation Bonanza
Given a horizontal array of numbers, perform the following operations, in order: transpose, flip matrix horizontally, flip matri...

environ 2 mois il y a

A résolu


Compute the total length of lines between all vertices of a regular polygon
Write a function to compute the total length of between all vertices of a regular polygon inscribed in a unit circle. For exampl...

environ 2 mois il y a

A résolu


nxn matrix with elements from 1:n^2
input n defines the dimension of a square matrix to be filled from 1 to n^2 with 1 in upper left corner and n^2 in bottom right...

environ 2 mois il y a

A résolu


Construct numbers from antidiagonals of stacks of binary numbers
A sequence is constructed in the following way: Express the numbers 1, 2, 3, 4, 5,… in binary and stack them, right-justified. T...

environ 2 mois il y a

A résolu


Roman to Integer Conversion
The idea behind this cody problem is to write a code that converts the Roman Numerals to Integers. A numeral system known as R...

environ 2 mois il y a

A résolu


List lunar triangular numbers without duplication
Triangular numbers—which are the subject of Cody Problems 5, 291, 44289, 44732, 45833, 55680, 55695, and 55705—are the sums of c...

environ 2 mois il y a

A résolu


Primitive Root Modulo n
Given a positive integer n > 2, return a vector, v, of positive integers smaller than n that are primitive roots modulo n. If no...

environ 2 mois il y a

A résolu


Bullseye Matrix with Zeros
Inspired by Problem 18, create a bullseye matrix with the addition of padding equal to 0 between concentric rings. Matrices are ...

environ 2 mois il y a

A résolu


Determine if a number is a cool number
A number is considered cool if it is 3 digits, has a 5 in it, and is divisible by 4.

environ 2 mois il y a

A résolu


Palindrome vector
Check if a given vector is Palindrome. Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]

environ 2 mois il y a

A résolu


Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...

environ 2 mois il y a

A résolu


Snakes and Ladders: Variable Die
This problem is a sequal to Problem 59132 Snakes and Ladders: Average Number of Turns. Instead of a 6-sided die, your function ...

environ 2 mois il y a

A résolu


Snakes and Ladders: Average Number of Turns
In this problem, you will play a single-player variant of the classic game Snakes and Ladders. The rules are as follows: The pl...

environ 2 mois il y a

A résolu


rotation et mise à l'échelle avec des complexes
Ecrire une fonction Zr=scale_rot(A,phi,Z) qui permet une mise à l'échelle d'un facteur A et une rotation d'un angle phi (en rad)...

environ 2 mois il y a

A résolu


Find stiffness of all beams for single floor in building
Create a function that finds this stiffness k of all the beams (also known as 'stanchions') for one floor of a three storey buil...

environ 2 mois il y a

A résolu


Find mass of single floor in building
A model building has three floors are highlighted in different colours here: Assu...

environ 2 mois il y a

Charger plus