- Hands-On Data Science with Anaconda
- Dr. Yuxing Yan James Yan
- 212字
- 2021-06-25 21:08:46
Using IPython
For a Windows version, after navigating to Anaconda3 from All Programs and then clicking on IPython, we can see the following:

You can also do the the same by launching Anaconda Prompt and then typing ipython.
This tells us that the version of Python is 3.6.3 and that the version of IPython is 6.1.0. We could type a few commands to test it. For example, if we invest $100 today for an investment horizon of 5 years, and the annual return is 10%, what is our expected future value? The future value formula for a given present value is provided here:

where FV is the future value, PV is the present value, R is the period return, and n is the number of periods:

The first line of command of pv=100 assigns a value of 100 to pv. For the fifth line, we typed a command line of pv*(1+r)^n. However, we received an error message of TypeError: unsupported operand type(s) for ^: 'float' and 'int'. The error message tells us that Python does not recognize the operand of ^ for a power. The corresponding operation for a power is double multiplication, as in **. There is also a power() function similar to **, shown here:

- 數據中心建設與管理指南
- 圖解PLC控制系統梯形圖和語句表
- 2018西門子工業專家會議論文集(上)
- Troubleshooting OpenVPN
- Lightning Fast Animation in Element 3D
- 項目管理成功利器Project 2007全程解析
- MATLAB/Simulink權威指南:開發環境、程序設計、系統仿真與案例實戰
- 分析力!專業Excel的制作與分析實用法則
- Godot Engine Game Development Projects
- 未來學徒:讀懂人工智能飛馳時代
- 傳感器原理與工程應用
- Learning Cassandra for Administrators
- 電氣自動化工程師自學寶典(基礎篇)
- 微控制器的選擇與應用
- BeagleBone Home Automation