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

7 years ago

Solved

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

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

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

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

7 years ago

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

10 years ago | 0

| accepted

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)

10 years ago | 2

| accepted

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

10 years ago | 1

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

10 years ago | 0

| accepted

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

10 years ago | 1

| accepted

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

10 years ago | 0

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

10 years ago | 2

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

10 years ago | 0

| accepted

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

11 years ago | 1

| accepted