(1/3)7#0###0000000000000000000000000000008000000000000000000000000000000000000000000000800000000...

在求1-1/3+1/5-1/7+一直到某一项绝对值的值小于1e-6(求它们的和)我是这样求得,但为什么结果是0.000000_百度知道
在求1-1/3+1/5-1/7+一直到某一项绝对值的值小于1e-6(求它们的和)我是这样求得,但为什么结果是0.000000
#include &stdio.h&#include &math.h&void main(){ double sum=0; int i=1; while(1/(2*i-1)&=1e-6)
sum=sum+pow(-1,i+1)*1.0/(2*i-1); printf(&%f&,4*sum);}
提问者采纳
#include &stdio.h&#include &math.h&void main(){ double sum=0; int i=1; while(1.0/(2*i-1)&=1e-6)
//1改为1.0 ,&=改为&= {
sum=sum+pow(-1,i+1)*1.0/(2*i-1);
//加一个i++ } printf(&%f\n&,4*sum);}
提问者评价
其他类似问题
其他4条回答
你应该while(1.0/(2*i-1)&=1e-6),整数相除损失了精度,转换成浮点才行
如果那样的话,系统会提示有错误的!
while(1.0/(2*i-1)&=1e-6){
sum +=pow(-1,i+1)*1.0/(2*i-1);
(2*i-1)表示有问题:pow(2,i)i得自++
我后来又加了i++,但为什么结果又是0.0000000
while(1/(2*i-1)&=1e-6)
{ sum=sum+pow(-1,i+1)*1.0/(2*i-1);
i++;}printf(&%f&,sum);这样试试
当然是错的啊,你循环的条件都写错了啊,你把小于号改成大于号就好了
楼上 春雨_润物 已经概括的很好了,但有一点需要进行修改,楼主最好使用标志变量,而不是使用数学函数来实现正负号的改变,另外可以发现楼主对于循环语句运用的还不太熟练,while,do-while ,以及for都是在满足条件时才进行循环。下面是我写的一个程序,有不足之处望指出: #include &stdio.h&#include &math.h&void main(){ double PI=0; int i=1,leap=1; while(1.0/(2*i-1)&=1e-6)
//1改为1.0 目的是自动类型转换,&=改为&= {
PI+=leap*(1.0/(2*i-1));
//加一个i++ printf(&%.6f\n&,4*PI);}
您可能关注的推广
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁已知三个不等式|x-3|+1&x,(6x+7/x+2)-2≥x,2x²-3mx+m²&0的解集分别为A,B,C_百度知道
已知三个不等式|x-3|+1&x,(6x+7/x+2)-2≥x,2x²-3mx+m²&0的解集分别为A,B,C
(1)求集合A(2)求集合B(3)若A∩B包含于C求实数m取值范围
提问者采纳
等式1:若x&=3则原式 x-2&x,恒立若x&3则原式4-x&x,x&2,所2&x&3
则集合A{x|x&2}等式2:化x^2-2x-3&=0,所集合B{x|-1&=x&=3}等式3:△=(3m)^2-8m^2=m^2&0
(2x-m)(x-m)&0
若m&0,则集合C{x|m/2&x&m}
若m&0,则集合C{x|m&x&m/2}
m=0解A∩B={x|2&x&=3}
若A∩B包含于Cm&0
m/2&2且m&3
所3&m&4m&0
m&2且m/2&3,解所m取值范围3&m&4
其他类似问题
其他1条回答
等式1:若x&=3则原式 x-2&x,恒立若x&3则原式4-x&x,x&2,所2&x&3
则集合A{x|x&2}等式2:化x^2-2x-3&=0,所集合B{x|-1&=x&=3}等式3:△=(3m)^2-8m^2=m^2&0
(2x-m)(x-m)&0
若m&0,则集合C{x|m/2&x&m}
若m&0,则集合C{x|m&x&m/2}
m=0解A∩B={x|2&x&=3}
若A∩B包含于Cm&0
m/2&2且m&3
所3&m&4m&0
m&2且m/2&3,解所m取值范围3&m&4 望采纳
参考资料:
我是xiayige岩
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁setuptools 11.3.1
Easily download, build, install, upgrade, and uninstall Python packages
Table of Contents
The recommended way to bootstrap setuptools on any system is to download
and run it using the target Python environment. Different
operating systems have different recommended techniques to accomplish this
basic routine, so below are some examples to get you started.
Setuptools requires Python 2.6 or later. To install setuptools
on Python 2.4 or Python 2.5, use the .
The link provided to ez_setup.py is a bookmark to bootstrap script for the
latest known stable release.
For best results, uninstall previous versions FIRST (see ).
Using Windows 8 (which includes PowerShell 3) or earlier versions of Windows
with PowerShell 3 installed, it's possible to install with one simple
Powershell command. Start up Powershell and paste this command:
& (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python -
You must start the Powershell with Administrative privileges or you may choose
to install a user-local installation:
& (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python - --user
If you have Python 3.3 or later, you can use the py command to install to
different Python versions. For example, to install to Python 3.3 if you have
Python 2.7 installed:
& (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | py -3 -
The recommended way to install setuptools on Windows is to download
and run it. The script will download the appropriate
distribution file and install it for you.
Once installation is complete, you will find an easy_install program in
your Python Scripts subdirectory.
For simple invocation and best results,
add this directory to your PATH environment variable, if it is not already
present. If you did a user-local install, the Scripts subdirectory is
$env:APPDATA\Python\Scripts.
For Windows without PowerShell 3 or for installation without a command-line,
using your preferred web browser or other technique
and &run& that file.
Most Linux distributions come with wget.
and run it using the target Python version. The script
will download the appropriate version and install it for you:
& wget https://bootstrap.pypa.io/ez_setup.py -O - | python
Note that you will may need to invoke the command with superuser privileges to
install to the system Python:
& wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python
Alternatively, Setuptools may be installed to a user-local path:
& wget https://bootstrap.pypa.io/ez_setup.py -O - | python - --user
Note that on some older systems (noted on Debian 6 and CentOS 5 installations),
wget may refuse to download ez_setup.py, complaining that the certificate common name *.c.ssl.fastly.net
does not match the host name bootstrap.pypa.io. In addition, the ez_setup.py script may then encounter similar problems using
wget internally to download setuptools-x.y.zip, complaining that the certificate common name of www.python.org does not match the
host name pypi.python.org. Those are known issues, related to a bug in the older versions of wget
(see ). If you happen to encounter them,
install Setuptools as follows:
& wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
& python ez_setup.py --insecure
If your system has curl installed, follow the wget instructions but
replace wget with curl and -O with -o. For example:
& curl https://bootstrap.pypa.io/ez_setup.py -o - | python
For more advanced installation options, such as installing to custom
locations or prefixes, download and extract the source
tarball from
and run setup.py with any supported distutils and Setuptools options.
For example:
setuptools-x.x$ python setup.py install --prefix=/opt/setuptools
Use --help to get a full options list, but we recommend consulting
for detailed instructions, especially .
All setuptools downloads can be found at .
Scroll to the very bottom of the page to find the links.
In addition to the PyPI downloads, the development version of setuptools
is available from the , and in-development versions of the
are available as well.
On Windows, if Setuptools was installed using an .exe or .msi
installer, simply use the uninstall feature of &Add/Remove Programs& in the
Control Panel.
Otherwise, to uninstall Setuptools or Distribute, regardless of the Python
version, delete all setuptools* and distribute* files and
directories from your system's site-packages directory
(and any other sys.path directories) FIRST.
If you are upgrading or otherwise plan to re-install Setuptools or Distribute,
nothing further needs to be done. If you want to completely remove Setuptools,
you may also want to remove the 'easy_install' and 'easy_install-x.x' scripts
and associated executables installed to the Python scripts directory.
Here are some of the available manuals, tutorials, and other resources for
learning about Setuptools, Python Eggs, and EasyInstall:
Questions, comments, and bug reports should be directed to the .
If you have written (or know of) any tutorials, documentation,
plug-ins, or other resources for setuptools users, please let us know about
them there, so this reference list can be updated.
If you have working,
tested patches to correct problems or add features, you may submit them to
The original design for the .egg format and the pkg_resources API was
co-created by Phillip Eby and Bob Ippolito.
Bob also implemented the first
version of pkg_resources, and supplied the OS X operating system version
compatibility algorithm.
Ian Bicking implemented many early &creature comfort& features of
easy_install, including support for downloading via Sourceforge and
Subversion repositories.
Ian's comments on the Web-SIG about WSGI
application deployment also inspired the concept of &entry points& in eggs,
and he has given talks at PyCon and elsewhere to inform and educate the
community about eggs and setuptools.
Jim Fulton contributed time and effort to build automated tests of various
aspects of easy_install, and supplied the doctests for the command-line
.exe wrappers on Windows.
Phillip J. Eby is the seminal author of setuptools, and
first proposed the idea of an importable binary distribution format for
Python application plug-ins.
Significant parts of the implementation of setuptools were funded by the Open
Source Applications Foundation, to provide a plug-in infrastructure for the
Chandler PIM application.
In addition, many OSAF staffers (such as Mike
&Code Bear& Taylor) contributed their time and stress as guinea pigs for the
use of eggs and setuptools, even before eggs were &cool&.
(Thanks, guys!)
Tarek Ziadé is the principal author of the Distribute fork, which
re-invigorated the community on the project, encouraged renewed innovation,
and addressed many defects.
Since the merge with Distribute, Jason R. Coombs is the
maintainer of setuptools.
The project is maintained in coordination with
the Python Packaging Authority (PyPA) and the larger Python community.
Py Version
Uploaded on
Python Wheel
Downloads (All Versions):
100240 downloads in the last day
636159 downloads in the last week
2666226 downloads in the last month
Python Packaging Authority
Documentation:
Home Page:
CPAN PyPI distutils eggs package management
PSF or ZPL
Categories
Package Index Owner:
pje, jaraco
Package Index Maintainer:
ianb, jaraco, dstufft, jezdez, Ivoz
Copyright (C) ,化简(0.064)^-1/3-(-7/8)^0+[(-2)^3]^-4/3+16^-0.75+|-0.01|^1/2,拜求大神解答!!!_百度知道
化简(0.064)^-1/3-(-7/8)^0+[(-2)^3]^-4/3+16^-0.75+|-0.01|^1/2,拜求大神解答!!!
化简(0.064)^-1/3-(-7/8)^0+[(-2)^3]^-4/3+16^-0.75+|-0.01|^1/2
提问者采纳
注意楼上的错了解:原式=(0.4³)^-1/3-1+(-2)^-4+2(⁴x-0.75)+0.01^1/2=0.4-¹ -1+1/16+2-³+0.1=5/2-1+1/16+1/8+0.1=3/2+3/16+1/10=27/16+1/10=135/80+8/80=143/80
额,不是计算,能帮忙化简下吗?(0.064)^-1/3-(-7/8)^0+[(-2)^3]^-4/3+16^-0.75+|-0.01|^1/2
上面就是化简过程本题没有字母,所以化简也就是计算
提问者评价
感激不尽!!!
其他类似问题
按默认排序
其他1条回答
原式=(0.4)^(-1)-1+(-2)^(-4)+(1/16)^(3/4)+√(0.01)
=2.5-1+(1/16)+(1/2)^3+0.1
=1.5-1+(1/16)+(1/8)+0.1
=0.6+(3/16)
√2/2^1/2=?
来自:求助得到的回答
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 ios7.0.4降级6.1.3 的文章

 

随机推荐