cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Found a number with a magnitude greater than 10^307...

Cornel
19-Tanzanite

Found a number with a magnitude greater than 10^307...

Hello,

What to add in below program for example in order to limit the values on x and y axis at:

Cornel_5-1695905990279.png

Cornel_6-1695905996520.png

So that the graph does not have more than 10^307 points to display, even if the program has available to display more points greater than 10^307.

Or what can be done in situations like this?

 

Cornel_0-1695905529424.png

Cornel_1-1695905535907.png

 

Cornel_2-1695905599407.png

 

Cornel_3-1695905691043.png

Cornel_4-1695905773151.png

Cornel_3-1695907055289.png

Cornel_4-1695907074237.png

Cornel_5-1695907095994.png

Cornel_6-1695907113674.png

 

 

 

 

 

I thought at below variant, but this variant does not differentiate in other type of  cases like division by zero:

Cornel_1-1695907013874.png

 

Cornel_0-1695906938854.png

Cornel_2-1695907029426.png

Cornel_7-1695907284761.png

If we run with the first program:

Cornel_8-1695907332260.png

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Cornel)

No, use one of the two  variants shown below.

When I wrote my previous answer I had the right version in my mind. The left one does the job as well because once the limit is exceeded you function never would return a lower number - therefore it makes sense to stop the program right at the first error.

Werner_E_0-1695920142937.png

It seems to make sense to use a log scale at the ordinate.

View solution in original post

3 REPLIES 3
Werner_E
25-Diamond I
(To:Cornel)

Try to put the "try... on error Nan" just around the y assignment in the loop

Cornel
19-Tanzanite
(To:Werner_E)

Cornel_2-1695911786581.png


Cornel_0-1695911752806.png

Cornel_3-1695911831160.png

 

Cornel_1-1695911762920.png

 

Werner_E
25-Diamond I
(To:Cornel)

No, use one of the two  variants shown below.

When I wrote my previous answer I had the right version in my mind. The left one does the job as well because once the limit is exceeded you function never would return a lower number - therefore it makes sense to stop the program right at the first error.

Werner_E_0-1695920142937.png

It seems to make sense to use a log scale at the ordinate.

Announcements

Top Tags