Resuelto


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

casi 10 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

casi 10 años hace

Resuelto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

casi 10 años hace

Resuelto


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

casi 10 años hace

Resuelto


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

casi 10 años hace

Respondida
Find conditions such that symbolic expression is real-valued
a) feval(symengine, 'solve', a*x^2 + b*x + c, x, 'Real', 'IgnoreSpecialCases') You may omit the IgnoreSpecialCases, whic...

alrededor de 12 años hace | 0

| aceptada

Respondida
simplifying symbolic expression in terms of other variables
You could also try syms a b x assume(x== a+b); F = a^2+b^2+2*a*b+a+b+1; simplify(F)

alrededor de 12 años hace | 2

| aceptada

Respondida
Can you turn off all simplifications?
It's a bit tricky. hold(4/6) will not help you because 4/6 -> 2/3 is done by the parser. You will have to define "frozen" forms ...

alrededor de 12 años hace | 1

Respondida
Square root of a polynomial over gf
You will have to do it by hand, that is, use polylib::sqrfree and divide all multiplicities by 2. These multiplicities are in th...

más de 12 años hace | 0

| aceptada

Respondida
Factorize transfer function
Don't know how to do it using tf, but you can do syms s Suu = -1.6/((s-4)*(s+4)) Sux = -0.8/((s+4)*(s-4)*(s^2 + 0.1*s...

más de 12 años hace | 1

| aceptada

Respondida
How to solve this equation
This is a recurrence equation and thus has to declared as such using rec(...). eq = evalin(symengine, 'rec(f(x)=h0*f(x)+h1...

más de 12 años hace | 0

Respondida
irreducibility test
You have to declare it as a polynomial over GaloisField, e.g. F = evalin(symengine, 'poly(x^2-2, Dom::GaloisField(5^7))) ...

más de 12 años hace | 2

Respondida
Problem Solving Symbolic Inequalities
Note that by default solve is in complex mode, i.e., you are looking for all solutions within the complex numbers. Try solu...

más de 12 años hace | 0

| aceptada

Respondida
Symbolic substitution to eliminate variables without solving for the explicit expressions
The second system, too, can be solved. You will have to work on the MuPAD Notebook level or use feval(symengine, ...) though bec...

casi 13 años hace | 1

| aceptada

Respondida
Solving a sine-cosine equation ( Warning: Explicit solution could not be found.)
There is no closed-form symbolic solution for general n, and for given n nobody can say which solutions are between -5 and 5 wit...

casi 13 años hace | 0

Respondida
"solve" cannot find analytic solution to a large multi-equation system, unless one is willing to break up the system and solve the parts sequentially
Hi Tamas, this works in newer versions of the symbolic toolbox (R2011a) as we have added some heuristics for systems containing...

más de 13 años hace | 1

| aceptada