Community Profile

photo

Thomas Lu


Last seen: fast 2 Jahre vor Aktiv seit 2019

Followers: 0   Following: 0

Statistiken

All
  • Thankful Level 2
  • Solver
  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Gelöst


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

mehr als 3 Jahre vor

Gelöst


Return area of square
Side of square=input=a Area=output=b

mehr als 3 Jahre vor

Gelöst


Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

fast 4 Jahre vor

Gelöst


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

fast 4 Jahre vor

Gelöst


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

fast 4 Jahre vor

Gelöst


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

fast 4 Jahre vor

Gelöst


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

fast 4 Jahre vor

Gelöst


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

fast 4 Jahre vor

Gelöst


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

fast 4 Jahre vor

Gelöst


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

fast 4 Jahre vor

Frage


How can I generate a set containing all possible combinations?
Let say I want to have a 2x2 matrix and the entries are chosen from numbers 1-8 (without repetition). How can I generate a set ...

etwa 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to generate a matrix with distinct integers entries?
How to generate a matrix with distinct integers entries, with user prompt in the number of row, columns, and the max number (int...

etwa 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How can I go back to the beginning of my program first line by a command?
I would like to go back to the first line of my program after a yes no prompt input and go back to the beginning with the answer...

etwa 5 Jahre vor | 1 Antwort | 1

1

Antwort

Gelöst


Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

etwa 5 Jahre vor

Gelöst


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

etwa 5 Jahre vor

Gelöst


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

etwa 5 Jahre vor

Gelöst


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

etwa 5 Jahre vor

Gelöst


Add two numbers
Given a and b, return the sum a+b in c.

etwa 5 Jahre vor

Gelöst


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

etwa 5 Jahre vor

Gelöst


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

etwa 5 Jahre vor

Frage


Switch to write programs
Use switch to write a program to prompt the user to enter an integer between 1 to 10 then display the English word corresponding...

etwa 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Matrix Operations using MATLAB
Let A = magic(6) How to Find eigenvectors of A corresponding to the eigenvalue of A with the largest absolute value? and how t...

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to surfplot from xyz coordinates?
Use surf to plot the following points: (1, 1, 1), (2, 1, 2), (3, 1, 3) (1.1, 2, 4), (2.2, 2, 5), (3.3, 2, 4) (1.2,3,3), (2.4,...

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can I make an array of sin(1), sin(2), ... , sin(100)?
How can I make an array of sin(1), sin(2), ... , sin(100)?

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten