Risolto


Functions For Points
Use this fucntion to earn some free points! function y = your_fcn_name(x) y = x^2 + 5; end

13 giorni fa

Risolto


Utilizing Functions
Use this function to work for some points: function y = fcn_of_your_choice(x) y = x^2 + 2; end

13 giorni fa

Risolto


Use this function for some points
Hit submit if you'd like to earn some points! function y = your_fcn_name(x) y = x^2 - 3; end

13 giorni fa

Risolto


Function(2)
Use this function to earn a few points. function y = your_fcn_name(x) y = x^2 - 8; end

13 giorni fa

Risolto


Function(1)
Use this function for some points (free) function y = your_fcn_name(x) y = x^2 + 2; end

13 giorni fa

Risolto


Easy Function(3)
Hit submit for some free points. function y = your_fcn_name(x) y = x^2 + 30; end

13 giorni fa

Risolto


CMPSC 200 help(2)
Use this problem to earn some easy points towards your 1,000! Just hit submit. function y = your_fcn_name(x) y = x^2 + 32; e...

13 giorni fa

Risolto


COMPSC 200 help
Use this problem to earn some free points towards your 1,000. Just hit submit! function y = your_fcn_name(x) y = x^2 + 50; e...

13 giorni fa

Risolto


Function(4)
Hit submit for some points! function y = your_fcn_name(x) y = x^2 - 4; end

13 giorni fa

Risolto


Easy Function(4)
Use the submit button to earn points function y = your_fcn_name(x) y = x^2 + 40; end

13 giorni fa

Risolto


Easy Function(2)
Hit the submit button for some cody points! function y = your_fcn_name(x) y = x^2 + 20; end

13 giorni fa

Risolto


Easy Function(1)
Use this function to earn some cody points! function y = your_fcn_name(x) y = x^2 - 1; end

13 giorni fa

Risolto


Easy Sequences 114: Counting Unique Numbers
A Unique Number is defined as a positive integer with no repeated digits. This means that and are unique numbers, but and ar...

13 giorni fa

Risolto


factorial_calc(n)
Write a MATLAB function called factorial_calc(n) that takes a positive integer n as input and calculates the factorial of n. The...

13 giorni fa

Risolto


List the two-bit primes
Each year at Christmas, my father-in-law and his partner send me the Puzzle Mania section from the New York Times. This year’s e...

13 giorni fa

Risolto


Armstrong Number
Write a function name armstrong_check that checks whether the given input is an Armstrong Number or not. It returns logical True...

13 giorni fa

Risolto


Identify de Polignac numbers
The numbers 125 and 329 can be written as the sum of a prime and a power of 2. For example, , and . The numbers 127 and 331, whi...

13 giorni fa

Risolto


Given a string s, find the length of the longest substring without repeating characters.
Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" O...

13 giorni fa

Risolto


Find a number m such that 2m and the square of m have the same digit sum
The number has the property that and have the same digit sum. It is the seventh number, including zero, in the sequence of nu...

13 giorni fa

Risolto


Find The area of the square
Given that the length of the side of a square is x, find the area.

13 giorni fa

Risolto


Easy Sequences 104: One-line Code Challenge - GCDs of Sum of Consecutive Cubes
For a natural number, n, the function CC(n) is defined as follows: In other words, CC(n) is the sum of cubes ...

16 giorni fa

Risolto


raise x to the nth power
use basic math operators and a variable to solve the problem for a given variable n. (make sure "n" is the variable you use)

circa un mese fa

Risolto


multiply by 5
multiply x by 5

circa un mese fa

Risolto


multiply by 12
multiply x by 12

circa un mese fa

Risolto


Calculate BMI
Given weight in kgs and height in metres, calculate body mass index

circa un mese fa

Risolto


Easy Sequences 100: One-line Code Challenge - 100th Digit of 100th power of an Integer
Given a integer , write a function that computes the digit of . If has less than digits just output a NaN. For example if , ...

circa un mese fa

Risposto
How to round numbers using the decimals as a probability?
A=10*rand(1,10) B=floor(A)+((A-floor(A))>rand(1,10))

circa un mese fa | 0

| accettato

Risposto
Is there a function like movsum which simply gets the values in a given sliding window rather than summing them?
b=1:10; a=b; n=5;%window size for k=1:n-1 a=[a;circshift(b,-k)]; end a=a'; a=a(1:length(b)-n+1,:)

circa 2 mesi fa | 0

Risposto
Create Number and excluding
No need for loops. A=randi([5,15],1,100); A(A==9|A==13)=[]; A

2 mesi fa | 0

Carica altro