Ln(x) and Sqrtaï(x) function added
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
--region *.lua
|
||||
--Date
|
||||
--This file is automatically generated by the 【BabeLua】 plugin
|
||||
|
||||
a = 1;
|
||||
b = 0.001;
|
||||
c = 0;
|
||||
|
||||
|
||||
|
||||
while a-b > 0.0001*a do
|
||||
c= (a+b)/2
|
||||
b = math.sqrt( a*b )
|
||||
a = c;
|
||||
end
|
||||
|
||||
|
||||
print(a,b)
|
||||
|
||||
--endregion
|
||||
Reference in New Issue
Block a user