Mathematica新手 - 绘制日志功能

时间:2018-03-07 15:44:57

标签: wolfram-mathematica

我在Mathematica上绘制几个简单的Log函数时苦苦挣扎:h(n)= n Log10(n)和i(n)= n ^ 2 +(n Log10 (N))。我目前输入的内容:

<Button
    android:id="@+id/buttonLogIn"
    android:layout_width="300dp"

    android:layout_height="60dp"

    android:layout_above="@+id/buttonReg"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="36dp"
    android:background="@drawable/buttonpink"
    android:fontFamily="sans-serif"
    android:text="LOG IN"
    android:textColor="@color/black"
    android:textSize="30dp" />


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<corners android:radius="100dp" />
<stroke android:width="5px" android:color="@color/pink" />
</shape>

与两个Log函数对应的图是莫名其妙的空白☹绘制具有另一个术语的Log10函数的语法是什么?此外,我最终希望所有四个图表都在一个图上。它的语法是f[n_] := n g[n_] := n^2 h[n_] := n Log10[n] i[n_] := (n^2 + (n Log10[n])) pf = Plot[f[n], {n, 0, 100}, PlotStyle -> Red] pg = Plot[g[n], {n, 0, 100}, PlotStyle -> Blue] ph = Plot[h[x], {n, 0, 100}, PlotStyle -> Green] pi = Plot[i[n], {n, 0, 100}, PlotStyle -> Yellow] ,对吗?

0 个答案:

没有答案