Updates to TicksExperimental#69
Conversation
…e to console application to reflect new methods.
…ulation of offset and exponent of offset.
autoformat, avoid extreme nested exceptions
|
Commit aa9f290 has a lot of small changes but the primary change is that I removed exceptions: and use if/else to determine what type of ticks to generate: |
|
I'm happy to merge this if you're okay with the change |
|
This is progressing really well! I just modified Ticks.cs and added a bool we can change to experiment with the new and old tick systems: Am I using your functions incorrectly? |
It's more than possibly a bug, but I need to test it after pulling. I'll see what's the problem. |
|
I am unable to reproduce. Works for me. Are you up with all commits? |
|
I modified the console application to reproduce this error double bigNumber = Math.Pow(23.456, 9);
double smallNumber = Math.Pow(23.456, -9);
DisplayTicksForRange(-bigNumber, bigNumber);
DisplayTicksForRange(9876 * bigNumber, 9877 * bigNumber);
DisplayTicksForRange(-smallNumber, smallNumber);
DisplayTicksForRange(9876 * smallNumber, 9877 * smallNumber); |
|
The bug is on line 96 which should read: For simmetrical plots, the Exponents.Min is 0. |
|
Edit: I made the change you suggested cfa8790 This is much better! However, a few issues remain: |
|
Line 100 should read: |
|
I made the change you suggested. It now looks like: |
|
And line 119 shall have the same correction of line 100 |
|
there is still one bug on line 109 to be sorted out. |
|
I made the update but the output is the same. I know you're going on holiday soon! I don't want to disturb you when you leave. If you're still available, it might be more effective for you to make code changes to this pull request and I can merge it once it's working well. If you've left already, let me know I'll keep working on this and not trouble you about it! This is the current mantissa-generating function: |
|
There's one remaining bug, when Max and Min are of the same order of magnitude and they require exponentiation. It is a recursion of the same scenario. I'll see into it when I'm back. |
|
This works great now, thanks so much @Padanian! I'll pull it into the main branch and continue to work on it a bit there. |
Updates to TicksExperimental


Update TicksExperimental for time domains ticks calculation. Update to console application to reflect new methods.