Community Profile # Tom R

### Purdue University

Last seen: 11 days ago Active since 2012

Professional Interests: Mechanical Engineering

Programming Languages:
Python, C++, C, MATLAB, Shell
Spoken Languages:
English

#### Statistics

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

View by

Submitted

Compressible Flow Relations
Calculates various flow relations for compressible fluid flow Submitted

Shape-preserving refinement of an STL/Triangulation
This function performs a shape preserving refinement to add faces to an existing triangulation (struct or STL). Solved

Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...

1 year ago

Solved

Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

1 year ago

Solved

Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

1 year ago

Solved

Negative Infinity
Round the given array a towards negative infinity.

1 year ago

Solved

Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

1 year ago

Solved

Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

1 year ago

Submitted

Find multi-objective Pareto front using modified quicksort
This function returns the indices to the Pareto optimal set of designs for a given multi-objective solution space Submitted

Plot with multiple Y-axes
Plotting function that allows for N y-axes using a common x axis Submitted

roundtowardvec
Round a vector of values towards a given vector of choices.

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

7 years ago

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

7 years ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

7 years ago

Solved

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

7 years ago

Solved

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

7 years ago

Solved

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

7 years ago