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

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

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

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

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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

11 years ago | 1

| accepted