Solved


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...

9 years ago

Solved


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

9 years ago

Solved


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:...

9 years ago

Solved


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

9 years ago

Solved


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...

9 years ago

Answered
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...

12 years ago | 0

| accepted

Answered
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)

12 years ago | 2

| accepted

Answered
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 ...

12 years ago | 1

Answered
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...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 1

| accepted

Answered
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...

12 years ago | 0

Answered
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))) ...

12 years ago | 2

Answered
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...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 1

| accepted

Answered
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...

12 years ago | 0

Answered
"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...

13 years ago | 1

| accepted