解決済み


Easy Sequences 67: Project Euler Problem 1 - Not Again!!!
You know the drill... Given two integers and , with , find the sum of all positive integers below , that are multiples of any ...

約4年 前

解決済み


Solve an ODE: first-order linear equation
In the fall semester of [redacted], my professor for a course on ordinary differential equations said, “There are two groups of ...

約4年 前

解決済み


Easy Sequences 60: Almost Cube Root
The almost cube root of an integer , is the largest possible integer , such that and . For example , then , since and since th...

約4年 前

解決済み


Easy Sequences 65: Fractional Part of Square Roots
The fractional part function of a positive real number , denoted as , is defined as: , where , is the 'floor' of . Thus, , and ...

約4年 前

解決済み


Binpack Contest: Retro
The <http://www.mathworks.com/matlabcentral/contest/contests/3/rules Full Binpack Rules and examples>. This Challenge is a re...

約4年 前

解決済み


Classify product/digit-sum sequences
Cody Problem 53120 involved a sequence in which a term is computed by multiplying the previous two terms and adding the digits o...

約4年 前

解決済み


Compute the effective conductivity of more heterogeneous aquifers
Cody Problem 52070 asked for a function to compute the effective hydraulic conductivity of a heterogeneous aquifer—or the single...

約4年 前

解決済み


Check whether a Wordle guess is consistent with previous feedback
The game Wordle resembles the classic game Mastermind. Players try to guess a five-letter word, and after each guess they are to...

約4年 前

解決済み


Create a secure password
You are joining the MATLAB Central platform to solve a question on Cody. The signup page requires you to input an id and a passw...

約4年 前

解決済み


Easy Sequences 64: Base-14 Arithmetic Function
For an integer , the base-14 arithmetic function, , is defined as follows: Convert to base-14, using the letters '' for digits...

4年以上 前

解決済み


Wordle
Wordle is an english game where you need to guess a 5 letter word. For each guess you'll receive a feedback for the placement of...

4年以上 前

解決済み


Time reverse indices
Time reverse the index values as follows IndexIn = [7 1 0] IndexOut = [7 6 0] Note that the indices are zero based and so...

4年以上 前

解決済み


Easy Sequences 66: Fractional Part of Sum of Consecutive Powers over a Prime
Given three postive integers, , and , create the function , defined as follows: Where is the th prime and the s...

4年以上 前

解決済み


Sum of two number using (regexp, varargin) comand?
Sum two number a &b and get there result in c using the rexp and varargin comand.

4年以上 前

解決済み


Backgammon #5 - Valid Move?
A previous problem in this occasional series (Problem 45967) set up a possible representation of a backgammon board: White ston...

4年以上 前

解決済み


List the dopey numbers
If vile numbers have binary representations that end with an even number of zeros (even vile), then numbers with binary represe...

4年以上 前

解決済み


Basic: fft
Calculate the value using fft

4年以上 前

解決済み


Find a Prime Number
Find a prime number from a vector Example: [2 51 8 65 19] a = 51

4年以上 前

解決済み


List the vile numbers
Evil numbers, the subject of Cody Problem 2733 have an even number of ones in their binary representations, whereas odious numbe...

4年以上 前

解決済み


Multiply 2 Numbers
Multiply a * b a = 80 & b = 90

4年以上 前

解決済み


List the Beatriz numbers
Write a function to find integers less than or equal to an input value that solve the equation . The function gives the sum o...

4年以上 前

解決済み


Backgammon #4 - Dice Probabilities
Previous problems in this series have looked at how a backgammon board might be represented, and board positions manipulated and...

4年以上 前

解決済み


Backgammon #3 - Display a Board Position
A previous problem in this occasional series (Problem 45967) set up a possible representation of a backgammon board: White ston...

4年以上 前

解決済み


Maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count...

4年以上 前

解決済み


Draw 'P' !!!
Draw a n by n matrix 'P' using 0s and 1s. (n is odd and greater than 4) if n=5 , then the output will be [1 1 1 1 1 1 0 0 0...

4年以上 前

解決済み


Find the summation, mean, median, mode and standard deviation of a given array.
An array is given. Find out the summation, mean, median, mode and standard deviation of a given array. If x=[1,2,2,3,3,3,4,4,4,...

4年以上 前

解決済み


Is A matrix the inverse of B matrix ?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse(A,B) ans = 1

4年以上 前

解決済み


Backgammon - Your turn!
A previous problem in this occasional series (Problem 45967) set up a possible representation of a backgammon board: White ston...

4年以上 前

解決済み


Easy Sequences 62: Sum of Omega-3 Function
For an integer , the prime big omega function, , is defined as the total number of prime factors of . If , since , therefore . ...

4年以上 前

解決済み


Total resistance of a network of resistors in series and parallel
What is the total resistance of a network of resistors in series and in parallel? A matrix R contains the resistances (in Ohm) ...

4年以上 前

さらに読み込む