Community Profile

photo

David Hill


Last seen: Today
1 114 total contributions since 2017

Contact

David Hill's Badges

  • 6 Month Streak
  • Pro
  • Knowledgeable Level 4
  • Sequences And Series III Master
  • Puzzler
  • Scholar
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 2
  • First Review
  • First Submission
  • Revival Level 1
  • Creator
  • Leader
  • Computational Geometry II Master
  • Card Games Master

View all

Contributions in
View by

Solved


Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

ungefär 12 timmar ago

Solved


Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...

ungefär 12 timmar ago

Solved


Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square. ...

ungefär 13 timmar ago

Solved


Area-02
Given the radius of the circle inscribed in a square, find the area of the square that can be fitted perfectly in the corner. ...

ungefär 13 timmar ago

Solved


Take it out
Consider the integer number sequence N (1 to infinity). After each iteration, take out the (k+1)th elements; where k is the n...

ungefär 13 timmar ago

Solved


Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

ungefär 13 timmar ago

Answered
Why Matlab does not plot "for loop" generated vector?
Best to use arrays/vectors. c=7; n=12; u=0:.1:n; hours = (2.3/c)*((u/c).^1.3).*exp(-(u/c).^2.3)*(1-0.09)*8760; plot(u,hours...

en dag ago | 0

Answered
sum of real numbers up to n using recursive code
function x = t_sum(n) x=1; if n>1 x=n+t_sum(n-1);%recursive end

en dag ago | 0

| accepted

Answered
Unsure what I did wrong
x=0:.01:2*pi; y=exp(1).^x; plot(x,y)

en dag ago | 0

| accepted

Solved


Kolakoski Sequence
This is a modified version of the kolakoski sequence. Refer to the problem <https://www.mathworks.com/matlabcentral/cody/p...

en dag ago

Solved


Integer sequence - 2 : Kolakoski sequence
Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.

en dag ago

Solved


length of string on cylinder
A cylinder H cm high has a circumference of C cm. A string makes exactly N complete turns round the cylinder while its two ends ...

2 dagar ago

Solved


Keep Only the Upper characters in a string
Keep Only the Upper characters in a string s = 'Sreeram Mohan'; output = SM;

2 dagar ago

Solved


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

2 dagar ago

Solved


leap year
find the number of leap years within the given time interval

2 dagar ago

Answered
true airspeed of different level
I am not sure if this is what you are looking for. g=9.81; d=[1.0587,.8198]; S=12.203; m=1204; cl=linspace(.6,1.4,20); hol...

2 dagar ago | 0

Answered
how to plot below equation get a curve starting from 0 to 100?
n=2; m=0;%you can change m to get different sets of graphs lambda=0:800;%0-800 alpha=linspace(0,0.02,7);%0-.02 hold on for ...

2 dagar ago | 0

Solved


Assignment Problem
Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

2 dagar ago

Answered
How to modify and improve this for-loop that I wrote?
RMSE=arrayfun(@(x)sqrt(mean((newcell{x}.rrr24(:)-newcell{x}.PRECIP(:)).^2)),1:numel(newcell))'; CC=arrayfun(@(x)corr(newcell{x}...

2 dagar ago | 1

| accepted

Solved


check whether a number is a pentatope number
<https://oeis.org/A000332>

2 dagar ago

Solved


Wythoff Sequence
Find the lower Wythoff sequence up to n. For more information, <https://oeis.org/A000201>

2 dagar ago

Solved


remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

2 dagar ago

Solved


generate nth pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

2 dagar ago

Solved


Tribonacci Sequence
Generate the tribonacci sequence upto n

2 dagar ago

Solved


Pell numbers
Find the nth pell number <https://en.wikipedia.org/wiki/Pell_number>

2 dagar ago

Solved


Zero
given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero. * if a=11(1011) t...

2 dagar ago

Solved


Gray code
Given a decimal number, convert it to its corresponding Gray code (see https://en.wikipedia.org/wiki/Gray_code). 8 -- 1100...

3 dagar ago

Solved


How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

3 dagar ago

Solved


Decimal to binary conversion (without using built-in function)
convert the given decimal number to its equivalent binary without using built-in function. * n=18 * out='10010'

3 dagar ago

Solved


Decimal Fraction to binary conversion
Given an fraction decimal number n, convert it to its equivalent binary number. If it is an infinite binary fraction, keep it...

3 dagar ago

Load more