Tracking scientific error when working with floating-point numbers
Background
Is (1/(1/x)) always a perfect round trip?
Is the following guaranteed to return true for all numerical and non-zero values of x
?
Customer Requirements Contains Equations that Cancel to Nothing
I have a project where the customer requirement specifies a report and contains mathematical equations for the contents of some of the columns on that report. One of the columns on this report is a running total which starts at a opening value, and which ‘should’ remain at that opening value all the way down the report because the other stuff balances out. I.e. if something had gone missing, the value would change and the customer would see that there is a problem.
Closest Point of Approach (CPA) mathematical formula in ship radar
I was recently searching for the mathematical formula to find closest point of approach (CPA) between one ship and another ship. I need to apply the formula in my radar ship program and I can’t find the correct way to calculates it.
Transform math formula into code (line-line intersection)
I’m having hard times transforming a math formula to code. I can solve it on the paper easily, but it’s hard for me to bring it into code form. Is it generally possible to bring a math formula directly into a program, or, if not, how can it be transferred?
Find how the data has been processed
Well this has been a question I have puzzled about for a long time:
Pairwise testing, not possible to say which combinations is faulty?
Let’s say I have 4 (A,B,C,D) parameters with 3 possible values, also 81 unique combinations. With e.g. orthogonal array, I will end up with 9 test cases, each combining 3 pairs. But that means that if one test case fails, I do not know which combination in the test case is faulty, right? Whether values of A,B or A,C or BC. Just wanted to be sure I understood it well.
What is the difference between a combinator and function chaining?
So from what I’ve read about combinators I can’t quite tell how they’re different from simply chaining function calls. I know I must be missing something but I’m not figuring out what I’m missing. I mean would g(f(x)) (where f and g are functions) effectively be a combinator if I gave it a different name?
Optimization algorithm, how to develop this problem
I have a situation where I would like your input and think over / solve algorithm.
Does learning to play an instrument improve programming ability? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]