cmath
C/C++ fastest cmath log operation
I\'m trying to calculate logab (and get a floating point back, not an integer). I was planning to do this as log(b)/log(a). Mathematically sp开发者_如何转开发eaking, I can use any of the cmath log fun[详细]
2023-03-19 06:24 分类:问答cmath asin() problems
Hey so i managed to locate the problem in some graphics math i am coding, and apparently when i reach this line of code: float test3= asin(test2); where test2= 0.017409846.[详细]
2023-03-15 18:26 分类:问答problems with cMath and the sin function
Hey so i\'m doing some graphics math and inserting what i believe to be a float (i\'m pretty sure the ways i manipulate the float beforehand is messing something up开发者_StackOverflow中文版 somehow..[详细]
2023-03-13 03:52 分类:问答cmath.h and compile errors
I used to work with math.h without any problem. Now, I use an external library which itself has a file called math.h, but which includes < cmath>.[详细]
2023-01-21 11:13 分类:问答In xcode when including cmath get error: '::acos' has not been declared, etc
I get the following errors when trying to build a small and simple project that includes <cmath> in Xcode:[详细]
2023-01-19 22:22 分类:问答C++ Use secant method to solve function
I have a school problem but I do not understand what it actually asks. Any of you have an idea what it\'s really asking for? I don\'t need code, I just need to understand it.[详细]
2023-01-17 15:16 分类:问答cmath compilation error when compiling old C++ code in VS2010
I\'ve inherited a few C++ files and an accompanying makefile, which I\'m trying to bring into VS2010 as a solution.I\'ve created an empty project and added the appropriate C++ and header (.hpp) files[详细]
2023-01-05 15:01 分类:问答When do I use fabs and when is it sufficient to use std::abs?
I assume that abs and fabs are behaving different when using math.h. But when I use just cmath and std::abs, do I ha开发者_运维问答ve to use std::fabs or fabs? Or isn\'t this defined?In C++, it\'s alw[详细]
2023-01-04 22:33 分类:问答how to do trig functions to data in Windows textboxes
must you convert from strings to double? if so. how? Are there functions for trig that will 开发者_运维百科accept textbox string data as is?[详细]
2023-01-01 20:00 分类:问答How can I work around the fact that in C++, sin(M_PI) is not 0?
In C++, cons开发者_如何学运维t double Pi = 3.14159265; cout << sin(Pi);// displays: 3.58979e-009[详细]
2022-12-27 16:23 分类:问答