Welcome to Bioxydyn's technical test! The purpose of this test is to assess your ability to write clean code that implements a brief as specified. The test can be completed using either the Javascript or python programming language, and should take you around 1 hour.
Clone this repository and modify the file Javascript/equation.js or Python/equation.py (depending on your language preference) to implement the brief below. When you are finished, zip the tech-test folder and email to matthew.heaton@bioxydyn.com. Alternatively, you may work in a private github repository and share your repository with mj-heaton & schofield-r.
If you require any further information or encounter any issues in completing this test, please contact matthew.heaton@bioxydyn.com.
Please do not make the source code of your completed test public.
Complete the function washInEquation in equation.js or equation.py so that it implements following equation with the following parameter values:
where:
tstart = 10.0
A = 1.0
B = 5.0
τ = 12.0
Complete the function areaUnderWashInEquation in equation.js or equation.py so that it implements the equation below. This function should therefore evaluate the area under the first equation between the time points of 0.0 and tend. Your function should make use of the washInEquation function developed previously. You may use any algorithm you wish to do the integration, but please don't rely on a third-party library.
Please run the provided tests to check your code before submitting it.
node Javascript/test
note: with node assertions you will only get a message if the tests have failed
Install pytest
$ pip3 install pytest
Then run
$ pytest Python/test.py

