163 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
2
answers
185
views
Is my epsilon usage correct for comparing floating-point numbers in circle overlap calculations?
I'm working on a C program that calculates the overlap area between two circles. The program needs to handle various cases: circles coinciding, one inside another, touching internally/externally, ...
0
votes
0
answers
34
views
EMF/Xtext grammar error "Encountered `val` at line 6, column 5. Was expecting `}`" after `Model` definition
I’m defining an EMF metamodel but I keep getting an error on the { that starts my Model class. The parser highlights the opening brace after Model and reports:
Encountered " "val" &...
4
votes
4
answers
179
views
How can I solve Float type Machine Epsilon Calculation Error?
#include <stdio.h>
void get_eps(float *eps) {
*eps = 1.0f;
while ((1.0f + *eps / 2.0f) != 1.0f) {
*eps /= 2.0f;
}
}
int main(){
float eps;
get_eps(&eps);
...
1
vote
0
answers
16
views
how search best epsilon and delta for lcs matrix(what object function)
how search best epsilon and delta for lcs matrix(what object function)
I want to use heuristic algorithms to search the value of epsilon and delta to find the best epsilon for time series data. I don'...
1
vote
1
answer
89
views
I can't understand machine epsilon arithmetic
I know that arithmetic operations whose result is close to zero can sometimes be non-associative. This follows directly from the definition of machine epsilon. however, I decided to test another ...
0
votes
1
answer
268
views
Scipy.minimize: how to calculate supremum with an epsilon
I'm trying to determine the supremum numerically of the following function:
example p(x) plot
p(x) is a probability function with p(0+) > 0 which I further assume to be monotonic decreasing.
The ...
0
votes
1
answer
143
views
Why is "(eps * 0.5) + 1" not greater than "1" in computer science?
I am studying Matlab, and I do not understand why (eps * 0.5) + 1 is not greater than 1.
eps
ans =
2.220446049250313e-16
fprintf('%.52f\n', eps);
0....
0
votes
2
answers
1k
views
I do not understand what Machine Epsilon means
I'm studying Matlab and computer arithmetic, but I'm having trouble grasping the concept of the Machine Epsilon. I would appreciate a simple explanation, as if I were a child. What does '2.2204e-16' ...
1
vote
1
answer
85
views
Merge Project models through EML using complex comparison rules
Problem:
I'm using EML and Epsilon Language Workbench to merge two project models, represented by two metamodels (MM1 and MM2), into a third metamodel (target). While I can achieve a simple merge ...
0
votes
0
answers
37
views
Is there an in-built support to add epsilon as an input parameter for double comparsions with mvel dialect?
I am using mvel dialect for defining rules for drools rule engine. It may comprise of arithmetic expressions like in the when part as shown below
rule "Test rule"
dialect "mvel"...
1
vote
2
answers
2k
views
Are there any best practices or considerations for setting "epsilon" values to avoid zero-division errors? [closed]
I'm thinking to add a value close to 0, the so-called "epsilon", to the denominator to prevent zero division error, such as:
double EPS = DBL_MIN;
double no_zerodivision_error = 0.0 / (0.0 + ...
1
vote
1
answer
604
views
C++ - How to count the length of the digits after the dot in a double / float?
How to count the length of the digits after the dot in a double / float?
Without std::string.
So the length after the dot of 1234.5678 is 4.
And how should you correctly use epsilon in such a ...
user avatar
user19652212
0
votes
1
answer
42
views
ECL - showing differences results for debugging
i'm using Epsilon Comparison Language for the first time. I am writing a code in order to compare two models, in particular i want to show some information on the default output stream console when ...
24
votes
2
answers
2k
views
Largest value representable by a floating-point type smaller than 1
Is there a way to obtain the greatest value representable by the floating-point type float which is smaller than 1.
I've seen the following definition:
static const double DoubleOneMinusEpsilon = 0x1....
1
vote
1
answer
401
views
Using Machine Epsilon to approximate sin(x) using Taylor's Series
I am having a hard time using Machine Epsilon which is 2.220446049250313e-16,I then need to use abs error to determine if my abs value of my sine term is less than the Machine Epsilon.
Write a sine ...