Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
Seitosh
Commits
e9dca5b6
Commit
e9dca5b6
authored
Nov 23, 2015
by
thomas.forbriger
Browse files
[WP] (issue7): describe tow potential problems
parent
eb09c535
Changes
1
Hide whitespace changes
Inline
Side-by-side
issue7_refract_catch_zero_offset.txt
View file @
e9dca5b6
...
...
@@ -25,11 +25,24 @@ multiplication of the samples with the mpc factors. For this reason for any
exponent (except exponent being exactly zero) a division by zero takes place
for zero-offset traces.
The exep
c
tion might by just by chance. How is zero to the power of zero
The ex
c
eption might by just by chance. How is zero to the power of zero
defined?
From the man page of the pow-function:
- The pow() function returns the value of x raised to the power of y.
- If y is 0, the result is 1.0 (even if x is a NaN).
We potentially face two problems:
- When using the zero offset (least offset) trace as a reference for offset
dependent scaling (as is the default), a division by zero happens in
subroutine mpcfactors.
- Zero offset traces may come with an mpc-scaling factor equal to zero. This
means, the trace should be down-scaled to a straight line in any case.
The current concept of trace scaling does this by leaving the sample values
of the trace as they are, by using a viewport for the trace according to
current clipping (derived in function settracevp) and by setting the world
coordinates for the trace's viewport appropriately (i.e. to infinity). In
the latter step there happens the nasty division by zero (division by mpc
factor). This problem is present, even is the zero offset trace is not used
as a reference.
----- END OF issue7_refract_catch_zero_offset.txt -----
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment