If the function f (x) = (x-1) / x + A is odd, the value of real number a

If the function f (x) = (x-1) / x + A is odd, the value of real number a


F (x) = (x-1) / x + A is an odd function
therefore
f(1)=-f(-1)
f(1)=a
f(-1)=2+a
a+2+a=0
a=-1



Draw the function image of F (x) = x Λ 2 + 2|x|


First draw the image of y = x Λ 2 + 2x, then erase the left half of the y-axis, and make the right half symmetrical about the y-axis. The principle is that no matter x is positive or negative, the corresponding function values are equal



Try to draw a general picture of the function f (x) = ln (x - 1 x)


The definition domain of the function f (x) = ln (x-1x) is (- 1, 0) ∪ (1, + ∞)



(2014. The second mock exam in Yangquan) if the image of function f (x) =-2abln (x+1) is tangent l over point (0, -1b) at x=1, and l is separated from circular C:x2+y2=1, then the positional relation between point (a, b) and circular C:x2+y2=1 is ()
A. On the circle B. outside the circle C. inside the circle D. indeterminate


∵ f (x) = - 2abln (x + 1), ∵ f ′ (x) = - 2Ab · LX + 1. The slope of tangent l k = f ′ (1) = - 2Ab · 12 = - ab. the equation of line L is y + 1b = - ABX, that is: ax + by + 1 = 0. ∵ the distance between line L and circle x2 + y2 = 1 is d = 1A2 + B2 > R = 1. ∵ A2 + B2 < 1. The point (a, b) is inside circle x2 + y2 = 1



Master, please enter the formula of PI
This is the formula I calculated. Is it correct (if right, hee hee
π=lim n→∞ 1/[cos(90-180/n)n]
It should be π = Lim n →∞ sin (180 / N) n
When N1, N2, N3 As it gets larger, the value of π gets closer,


Just look at me. But you're right!



How to calculate pi?


The ancients generally used the method of cutting circle to calculate the circumference of a circle. Archimedes used the regular 96 polygon to get the accuracy of 3 decimal places; Liu Hui used the regular 3072 polygon to get the accuracy of 5 decimal places; Rudolph used the regular 262 polygon to get the accuracy of 35 decimal places



An algorithm for calculating pi
The algorithm formula is pi = 4 * (1-1 / 3 + 1 / 5-1 / 7 + 1 / 9 -.)
Look at the program below
#include
#include
main()
{float n,pi,t;
int k=1;
pi=0,t=1,n=1;
while(fabs(t)>1e-6)
{
t=k/(2*n-1);
pi=pi+t;
k=-k;
n++;
}
pi=4*pi;
printf("%f",pi);
}
Why set the initial value of t as 1,
If it is set to 0, the first step in the loop can also be calculated,
Why is the result of the program output wrong when it is set to 0


Because the cyclic condition is while (Fabs (T) > 1e-6)
If you set t to 0, the first step doesn't match, so there's no loop
The output must be zero



Who can talk about the history of Monte Carlo algorithm in detail


I have noticed when Quan Quan's "Monte Carlo method" series was announced. However, due to the limited time recently, I didn't have time to read the first "integral method" carefully until tonight. Generally speaking, it is very clear and I hope to continue. Because the foundation of the whole Bayesian statistics is Monte Carlo calculation



PI can be expressed by π or PI. What is the difference between PI and π?


π is normal
PI generally only appears in programming languages. To be exact, PI is the English pronunciation of π. Other books only use PI when they have to



Is pi the same as PI in radian


Pi of PI is a constant
PI in radians is an angle corresponding to 180 degrees
The two are numerically equivalent