曼德尔布罗特麻烦

编程入门 行业动态 更新时间:2024-10-22 09:37:26
本文介绍了曼德尔布罗特麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

前段时间我为一个非常简单的Mandelbrot资源管理器编写了这段代码。我遇到的主要问题是,在放大到一定深度后,我使用的双数据类型无法进一步发展。有没有办法解决这个问题?谢谢。

Hi, I wrote this little piece of code for a very simple Mandelbrot explorer some time ago. The main problem I came across was that after zooming in to a certain depth, the double data type I used couldn''t go further. Is there a way to solve this problem? Thank you.

推荐答案

我写了这段小代码很久以前,一个非常简单的Mandelbrot探险家。我遇到的主要问题是,在放大到一定深度后,我使用的双数据类型无法进一步发展。有没有办法解决这个问题?谢谢。 Hi, I wrote this little piece of code for a very simple Mandelbrot explorer some time ago. The main problem I came across was that after zooming in to a certain depth, the double data type I used couldn''t go further. Is there a way to solve this problem? Thank you.

你可以做两件事之一。当你到达那里时,使用一个长的双,或找到重复的模式然后回到那个位置。 长双倍肯定更容易。 Adrian

You can do one of two things. Use a long double, or find the repeating pattern and back off to that position when you get there. The long double is definitely easier. Adrian

你可以做两件事之一。使用长双,或找到重复的模式,并在到达那里时返回到该位置。 You can do one of two things. Use a long double, or find the repeating pattern and back off to that position when you get there.

一定要做一个sizeof(long double)。在Windows上,double和long double是相同的。

Be sure to do a sizeof(long double). On Windows, double and long double are the same.

确保执行sizeof(long double)。在Windows上,double和long double是相同的。 Be sure to do a sizeof(long double). On Windows, double and long double are the same.

是的。你是对的。实际上我在我的代码中使用了long double,但后来我发现double和long double只有8个字节长。我说双,因为没关系。但是,有另一种解决方法吗?

Yep. You are right. Actually I used long double in my code, but later I found out that both double and long double are only 8 bytes long. I said double because it doesn''t matter. However, is there a way around this problem in another way?

更多推荐

曼德尔布罗特麻烦

本文发布于:2023-11-30 20:57:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1651449.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:布罗   曼德   麻烦

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!