初学者问题:日志? [英] Beginner question: Logs?

查看:78
本文介绍了初学者问题:日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿大家好!我是一名数学学生,正在制作一个涉及

日志的简短剧本。我在我的科学计算器上有一个功能,并且想知道如果在python中有类似的功能,那么



例如:


(log65536)/(log4)= 8

我已经搜了一下,但却找不到任何东西。


谢谢!


-Christian

解决方案

Svens写道:

大家好!我是一名数学学生,正在编写一个涉及
日志的简短脚本。我在我的科学计算器上有一个功能,并且想知道如果在python中有类似的功能。

例如:

(log65536)/(log4 )= 8

我已经搜索了一下,但却找不到任何东西。




import math


-

Robert Kern
rk *** @ ucsd。 edu


在地狱的地方,草地长得很高

梦想的坟墓是否能够死亡。 />
- Richard Harter


嘿谢谢......


仍然收到错误但是消息。这就是我正在做的事情:

------

导入数学

log10(15625)

------

- 它说log10没有定义,但是因为模块导入了

,对吧?


Svens写道:

嘿谢谢......

仍然收到错误信息。这就是我正在做的事情:
------
导入数学
log10(15625)
------
- 它说log10没有定义,但是因为模块是导入的,对吧?




不,请阅读教程。


导入数学

math.log10(15625)

-

Robert Kern rk***@ucsd.edu


在地狱的地方草长得很高

梦想的坟墓是否已经死亡。

- Richard Harter

Hey everyone! I''m a math student working on a short script involving
logs. I have a function on my scientific calculator, and was wondering
if there was a similar funtion in python.

For example:

(log65536)/(log4)= 8

I''ve searched around a bit and haven''t been able to find anything.

Thanks!

-Christian

解决方案

Svens wrote:

Hey everyone! I''m a math student working on a short script involving
logs. I have a function on my scientific calculator, and was wondering
if there was a similar funtion in python.

For example:

(log65536)/(log4)= 8

I''ve searched around a bit and haven''t been able to find anything.



import math

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter


Hey thanks...

Still getting an error message though. Here''s what i''m doing:
------
import math
log10(15625)
------
-It says that log10 is not defined, but it is since the module is
imported, right?


Svens wrote:

Hey thanks...

Still getting an error message though. Here''s what i''m doing:
------
import math
log10(15625)
------
-It says that log10 is not defined, but it is since the module is
imported, right?



No, read the tutorial.

import math
math.log10(15625)

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter


这篇关于初学者问题:日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆