I have a MSc in physics from the University of Oslo and a PhD in control engineering from NTNU in Trondheim (mainly modelling, I am not much of a control engineer). My main interests are mathematical modelling, numerical methods, and thermodynamics. I worked in the petroleum and chemical process industries for some 35 years and I am now semi-retired

Solved

Radiation Heat Transfer — View Factors (4)

View factors (aka configuration factors) are utilized in some radiation heat transfer models to estimate heat transfer rates bet...

1 día ago

Solved

Height of a right-angled triangle

Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

1 día ago

Solved

Placing Beads Neatly in a Box

You are given a string of n black and white beads. Your job is to pack them neatly into a square box. "Neatly" in this case mean...

2 días ago

Solved

Convex Hull Capture

Imagine four points in uv that form a square. uv = [ ... 0,0; 0,2; 2,2; 2,0]; Now we have two more po...

7 días ago

Solved

Find the sines of an isosceles triangle when given its area and height

Find the sines of an isosceles triangle when given its area and height. For example, when A=60 and h=5, the result is [0.3752...

7 días ago

Solved

solid of revolution

Given an real polynomial P and two real numbers a,b with 0<=a<=b. Calculate the volume of the solid of revolution made by rota...

7 días ago

Solved

Minimal cost

A power house, P, is on one bank of a straight river W meters wide, and a factory, F, is on the opposite bank L meters downstr...

7 días ago

Solved

Valid Chess Moves

Using <http://en.wikipedia.org/wiki/Algebraic_chess_notation standard Algebraic notation> ('' for a pawn), given previous move a...

8 días ago

Solved

Extract Built In Functions and Toolbox Functions from String or Function Handle

Find the Built-In functions and Toolbox functions in either a string or a function handle. Generate a string of alphabetized ...

8 días ago

Solved

QWERTY coordinates

Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

9 días ago

Solved

Word Distance - Sum

Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

9 días ago

Solved

Draw 'B'

Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

10 días ago

Solved

~~~~~~~ WAVE ~~~~~~~~~

|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

10 días ago

Solved

Remove the air bubbles

Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

10 días ago

Answered

For loop assistance- incorrect data

You give DATA.s(3,1) the desired value in line 8 of exec2w. Then you overwrite it with the wrong value in line 22. I found deb...

For loop assistance- incorrect data

You give DATA.s(3,1) the desired value in line 8 of exec2w. Then you overwrite it with the wrong value in line 22. I found deb...

10 días ago | 0

Answered

How can resolve r0<=r0_max?

I interpret your question to mean that you want copertura{mm,nn}(k,1) to take the value 1 if r0{mm,nn}(k,1) <= r0_max(mm,nn), an...

How can resolve r0<=r0_max?

I interpret your question to mean that you want copertura{mm,nn}(k,1) to take the value 1 if r0{mm,nn}(k,1) <= r0_max(mm,nn), an...

13 días ago | 0

Submitted

Nonlinear equation system solver: broyden

Solve set of nonlinear equations. Optionally define bounds on independent variables.

19 días ago | 29 downloads |

Submitted

Fast solver for nonlinear equation systems: newton.m

Solves a system f(x) = 0 with n equations in n variables

20 días ago | 9 downloads |

Submitted

Thermodynamic models and tools for H2O, H2, CO2 and Air

Tool for effective thermodynamic calculations. Includes high-accuracy thermodynamic models for H2O, H2 CO2 and Air.

27 días ago | 21 downloads |

Submitted

Curvature of a 1D curve in a 2D or 3D space

Calculates the local radius of curvature as well as the cumulative arc length and the curvature vector along a 1D curve in 2D or...

alrededor de 1 mes ago | 78 downloads |

Solved

Project Euler: Problem 4, Palindromic numbers

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

alrededor de 2 meses ago

Solved

Project Euler: Problem 3, Largest prime factor

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

alrededor de 2 meses 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...

alrededor de 2 meses ago

Submitted

test_derivatives

Tool to test analytical against numerical derivatives.

3 meses ago | 3 downloads |

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

4 meses ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

4 meses ago

Solved

Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)

Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...

4 meses ago

Answered

Increasing precision of second order boundary value problem

Your asymptotic expansion solution seems to have zero slope at y = 0. This implies that the second derivative is zero and the s...

Increasing precision of second order boundary value problem

Your asymptotic expansion solution seems to have zero slope at y = 0. This implies that the second derivative is zero and the s...

4 meses ago | 0

Solved

Place wastewater treatment processes in the correct order

There are many technologies for treating wastewater. For example, grit chambers are used to remove heavy solids, filtration is u...

4 meses ago

Solved

Maximize the production in a plant within equipment capacity

The goal of a certain manufacturing company is to maximize its production of goods per day. In the production flow, there is a s...

4 meses ago