문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


Create rectangular function.
Rectangular function - Wikipedia

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


Carmichael Function
Compute the carmichael function for the input.

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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.

2개월 전

문제를 풀었습니다


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]

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

더 보기