Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


Create rectangular function.
Rectangular function - Wikipedia

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


Carmichael Function
Compute the carmichael function for the input.

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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.

5 Monate vor

Gelöst


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]

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Gelöst


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

5 Monate vor

Mehr laden