Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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)

alrededor de 3 años hace

Resuelto


multiply by 5
multiply x by 5

alrededor de 3 años hace

Resuelto


multiply by 12
multiply x by 12

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

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

alrededor de 3 años hace | 0

| aceptada

Respondida
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,:)

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

Cargar más