八度不允许我正确阅读

问题描述

我正在尝试阅读5x^2,但是八度表示这是错误的,它还允许我们放置(sin(x/2))^3

clc; close all; clear; 

pkg load symbolic;

syms x;
f=input("Introduce la funcion ");
diff(f,x)

也有两种情况的输出

case(sin(x / 2))^ 3

Introduce la funcion (sin(x/2))^3
ans = (sym)

       2/x\    /x\
  3*sin |-|*cos|-|
        \2/    \2/
  ----------------
         2

案例5x ^ 2

Introduce la funcion 5x^2
parse error:

  Syntax error

>>> 5x^2
     ^

error: called from
    symbolic at line 6 column 2

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)