Displaying 4 results from an estimated 4 matches for "result_b".
Did you mean:
result_r
2007 Jun 16
2
[LLVMdev] Wrong tan
Hi!
<tangens_bug.cc>
#include <iostream>
#include <cmath>
int main()
{
float a = 0.3;
double b = 0.3;
float result_a = std::tan( a );
float result_b = std::tan( b );
std::cout << "tan float: " << result_a << std::endl;
std::cout << "tan double: " << result_b << std::endl;
}
<end tangens_bug.cc>
Result compiled with g++ 4.1:
tan float: 0.309336
tan double: 0.309336...
2007 Jun 16
0
[LLVMdev] Wrong tan
...an float: 0
tan double: 0
????
In summary: Everything works except linking with llvm-g++!
Gonsolo
Appendix A:
<tan_bug.cc>
#include <iostream>
#include <cmath>
int main()
{
float a = 0.3;
double b = 0.3;
float result_a = std::tan( a );
float result_b = std::tan( b );
std::cout << "tan float: " << result_a << std::endl;
std::cout << "tan double: " << result_b << std::endl;
}
</tan_bug.cc>
Appendix B:
<Makefile>
all: test_g++ test_llvm-g++ test_interpreter tes...
2007 Jun 16
2
[LLVMdev] Wrong tan
On Jun 16, 2007, at 12:35 AM, Duncan Sands wrote:
>> Result compiled with llvm-g++ 2.0:
>> tan float: -2.18504
>> tan double: 0.309336
>
> This may be due to bug 1505.
It fails on x86 using x87 floating point, with the inliner not run,
because of 1505, yes. Gonsolo, is that your situation?
(What happens is, there is a wrapper in the header file for std::tan
(float),
2012 Jun 14
0
Complex summary of counts of rank positions over multiple dataframes
...like to have for all populated 'cells' of the
result_a-dataframe the sum of the all 'values' from the original dataframes
instead of the counts.
Like:
rank1b <- c(34,24,0,0,0,0,0)
rank2b <- c(6,20,0,0,0,0,0)
rank3b <- c(0,0,4,5,4,0,0)
rank4b <- c(0,0,3,2,0,0,2)
result_b <- data.frame(uniquevars,rank1b,rank2b,rank3b,rank4b)
Is there any common procedure to get counts of ranks for multiple dataframes?
Has anyone done similar things I can help me to get this done in a simple way considering the multiple dataframes in the loop?
/Johannes
--
Jetzt informiere...