zoukankan      html  css  js  c++  java
  • solve

    用matlab解方程

    s=solve(200-200*x^(-0.4)-6*x,x)

    返回:

    警告: The solutions are parameterized by the symbols: z2.
    To include parameters and conditions in the solution, specify the 'ReturnConditions'
    option.
    > In solve>warnIfParams (line 500)
    In solve (line 356)
    警告: The solutions are valid under the following conditions: z2^7 - (100*z2^2)/3 +
    100/3 == 0 & -pi/5 < angle(z2) & angle(z2) <= pi/5.
    To include parameters and conditions in the solution, specify the 'ReturnConditions'
    option.
    > In solve>warnIfParams (line 507)
    In solve (line 356)

    s =

    z2^5

    help solve中关于z的表述:

    Example 12:
    syms a x y
    [x0, y0, params, conditions] = solve(x^2+y, x, y, 'ReturnConditions', true)
    generates a new parameter z to express the infinitely many solutions.
    This z can be any complex number, both solutions are valid without
    restricting conditions:

    ===============================================

    换思路求解,平方后用fmincon优化!

  • 相关阅读:
    Majority Element
    Longest Increasing Subsequence
    Count Primes
    Valid Parentheses
    Largest Rectangle in Histogram
    Linked List Cycle II
    Linked List Cycle
    Evaluate Reverse Polish Notation
    Longest Valid Parentheses
    适配总结
  • 原文地址:https://www.cnblogs.com/lancezliang/p/10673820.html
Copyright © 2011-2022 走看看