Community Profile # William

Last seen: Today Active since 2012

Semi-retired physicist with interests in numerical modeling and mathematics.

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

Solved

Determine whether a number is prome
In discussing the unique factorization of numbers in Elementary Number Theory, Underwood Dudley devised a new number system: “C...

4 days ago

Solved

Classify water surface profiles
Problem statement Write a function to classify the water surface profile starting at depth in a channel with longitudinal slop...

9 days ago

Solved

Draw '5' in Chinese.
Draw a x-by-x matrix '五' using 1s and 0s. Example: x=5 ans= [1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 1 1] x=7...

11 days ago

Solved

Compute the critical depth of a channel
Problem statement Write a function to compute the critical depth of a channel with discharge . The unit system will be specifie...

11 days ago

Solved

Remove runs of at least n consecutive NaNs
This problem is inspired by Dyuman Joshi's problem 58329. Given a row vector x and a natural number n, remove all runs of at lea...

12 days ago

Solved

Create an empty array
Suppose you need an empty array. e = [] will give you one, but it's a double array, which may not help if you need a differen...

12 days ago

Solved

Find the circle inscribed in a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the cente...

12 days ago

Solved

Suma de Gauss
¿Cuál es la suma de los primeros enteros positivos?

13 days ago

Solved

Decode a message encrypted with the square root of 2
Cody Problem 58299 asks you to encrypt a message by changing all letters to uppercase and randomly choosing a position of the AS...

14 days ago

Solved

Continuous NaNs - I
Remove any continuous NaNs that appear in the array - %Example 1 input = [1 NaN 2 NaN NaN 3 NaN NaN NaN] output = [1 NaN 2 ...

14 days ago

Solved

Encrypt a message with the square root of 2
Suppose you want to encrypt the word ‘TWIN’. The ASCII codes for the four letters are 84, 87, 73, and 78. If you consider the fr...

14 days ago

Solved

Compute the normal depth of a channel
For steady uniform flow in a channel of constant cross section and slope, the depth does not change with distance or time. In th...

14 days ago

Solved

Calculate the Voltage Through a Step-Up Transformer
Given a step-up transformer has a primary coil with A number loops, a secondary coil with B number loops, and a primary voltage ...

15 days ago

Solved

Easy Sequences 116: Summation involving nthroot, floor, and ceiling functions
Given a postive integers and , we are asked to evaluate the following summation: ...

23 days ago

Solved

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

26 days ago

Solved

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

29 days ago

Solved

Find the mean of the magic x
Given a x term, find the magic x, then find the mean/average of any one row or column.

29 days ago

Solved

Find circular arc length, sector area and segment area
Given a circular arc passing through the points P = [ x1 y1 ] and Q = [ x2 y2 ] such that the center angle of the arc (in degree...

1 month ago

Solved

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

1 month ago

Solved

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

1 month ago

Solved

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

1 month ago

Solved

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

1 month ago

Solved

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

1 month ago

Solved

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

1 month ago

Solved

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

1 month ago

Solved

Function(3)
Use this function to earn some points on your cody journey! function y = your_fcn_name(x) y = x^2 - 12; end

1 month ago

Solved

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

1 month ago

Solved

Easy Function
Use this function to earn some points (hit submit): function y = your_fcn_name(x) y = x^2 + 10; end

1 month ago

Solved

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

1 month ago

Solved

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

1 month ago