Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have found this formula for computing Pi value:
But I need to compute only(for example - 1000th) number of Pi value. How I can do it with provided formula?
Thanks.
What you want is called a "spigot algorithm". Take a look at [1] in the section "BBP digit-extraction algorithm for pi". Good luck and have fun.
[1] http://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%93Plouffe_formula
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 11 months ago.
Improve this question
I am reviewing a proof at the moment and there is terminology that I do not understand. What does it mean for a polynomial to have "integral coefficients"?
"Integral coefficients" means that the coefficients of your final answer will be integers, unless there is a markedly different context in which the question is being asked.
You can have a look at the definition here.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I want to understand the physical significance of n raise to some decimal power.
Like when i say 2^5. I understand that it means 2 multiplied 5 times. But how do i analyse 2^0.1.
Please suggest.
2^0.1 is the tenth root of 2. For rational powers, x^(p/q)=(x^p)^(1/q) is a combination of powers and roots.
For general real numbers,
x^y = exp(log(x)*y).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
((A*55)/(A+1815))+4=B
eg.:
((1000*55)/(1000+1815))+4=23.53819
How can i calculate from
23.53819 1000?
A and B are variables.
Sry for my bad english ;)
Thanks any help!
Just follow the steps described before. The goal is to manipulate the expression to get all terms containing the variable to be solved for on one side.
You Have to First do what ever present in Brackets then Division, Multiplication and then Addition and Subtraction.
For any equation you have to follow the sequence.
Hope this helps
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have this R code, and i want to assign to the Max Variable the maximum value of A and B
, would be something like :
Max<-(A,B)
How can i do it in R?
I searched but i couldn't find a max function.
Thanks
The function is literally max:
Max <- max(A, B)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Let's say I have a vector of 10 elements called numbers in R
numbers <- c(0,1,1,1,0,0,1,0,1,0)
and I want to replace each occurrence of 1 to 5?
this should work
v[v==1]<-5