significant-digits
Which way has better accuracy to compute the matrix matrix vector product, A B u?
I want to compute the vector, s = A B u, where s and u are N-dimensional complex vector, A is a N-by-M complex matrix, B is M-by-N complex matrix. Which of the following two ways has better accuracy[详细]
2023-04-08 04:36 分类:问答Rounding with significant digits
In Xcode /Objective-C for the iPhone. I have a float with the value 0.00004876544. How would I get it to display to two decimal places after the first significant number?[详细]
2023-03-21 23:27 分类:问答Values in R legends are shortened to Ne+n form
We are trying to print some Finnish forestry maps using R. The map is drawn nicely but some of numbers in the legends are not shown in their full length, but in the format 3e+06.[详细]
2023-03-16 07:29 分类:问答C++ significant figures
Ho开发者_Go百科w can I do math involving significant figures in C++?I want this to work correct with measured data from chemistry and physics experiments.An example: 65 / 5 = 10.I would need to get ri[详细]
2023-02-03 05:09 分类:问答Is there any way to print at least 20 significant figures in Octave?
I need to print the result of a program with 20 significant figures, but I don\'t know how to print more than 15开发者_高级运维 figures (format long). Is there any way to achieve this?You can control[详细]
2023-01-23 21:14 分类:问答Is there a way to get the "significant figures" of a decimal?
Update OK, after some investigation, and thanks in big part to the helpful answers provided by Jon and Hans, this is what I was able to put together. So far I think it seems to work well. I wouldn\'t[详细]
2023-01-15 08:35 分类:问答How do I round an integer up to <nearest large number> in Ruby?
Say I h开发者_运维技巧ave any of the following numbers: 230957 or 83487 or 4785 What is a way in Ruby I could return them as[详细]
2023-01-10 15:10 分类:问答How to round a number to significant figures in Python
I need to round a float to be display开发者_Python百科ed in a UI.e.g, to one significant figure:[详细]
2023-01-10 02:04 分类:问答String Format % with significant figures
I am using the following code to show percentage using String.Format but I also want to limit the number of significant figures to 2, the two don\'t seem to play well together.How can I get the two wo[详细]
2023-01-04 09:19 分类:问答Nicely representing a floating-point number in python [duplicate]
This question already has answers here: 开发者_如何学Go Is floating point arbitrary precision available?[详细]
2022-12-27 13:13 分类:问答