## How to compute more than 33 terms for OEIS sequenc...

See A342180 in OEIS. Two codes have been written for this, one in Python (17 terms found), the other in Mathematica (33 terms). Could a Maple code go beyond a(33), assuming higher terms exist?

## Resultant of two homogeneous polynomials in two va...

This question may be a little dumb, but how can I calculate the resultant of two homogeneous polynomials with two variables according to these variables? Say resultant(f,g,{x,y}), where f(x,y) and g(x,y) are homogeneous polynomials with degree m and n, respectively. Any help would be greatly appreciated!

## RootOf not being removed with allvalues, any thoug...

RootOfQuestion.mw

Hi Everyone, so i understand (to the best of my knowledge) the purpose of RootOf and I have worked with them before but now for some reason when i try to use allvalues to express the solution explicitly it does not express it, instead just keeps as RootOf expression.

I have attached the maple file I am working with.

I have also tried solve(expr, explicit) as well as convert(expr, radical) and still nothing.

Am I missing something small?

## how to produce point plot...

here is my try

for ploting points of data ( d(n(, sum(n))

new.mw

## How to eval integration under loop...

Here is my try to integrate the expression L with trapozoid or simpson

numerical_int.mw

## Does Maple have support for creating multivariate ...

I am trying to solve this type of problem:

I thought I could double check my answers by creating a RandomVariable and calculating the probablity using the Probability function.

But from the RandomVariables documentation,  it seems only univariate random variables are supported.

Is there really no way to define a RandomVariable given a joint distribution?

## How to write a proc for determining primes with a ...

Requesting a procedure to calculate primes p for which there exists a prime q <= p such that pi(p)=q-pi(q), where pi is the prime counting function. If possible options to select output as p, or as (p,q).

p list starts:2,13,17,29,31,43.....

q list starts: 2,11,13,17,19,23...

David.

## Division assignment for function in Maple...

The input

`f(x) := x^2;`

`n := evalf(int(f(x)^2, x = 0 .. 1));`

`f(x) :=  f(x)/n;`

`plot(f(x), x = 0 .. 1)`

`Error, (in f) too many levels of recursion`
I need to reassign the function as itself divided by n that depends on the old f...

A piece of code like this is supposed to be inside a loop, so creating f_new(x):=f(x)/n doesn't solve the issue.

If it was a cpp code I'd write something like f(x)/=n for every x. How can I do it in Maple?

## How to find the real solution where two curves in...

I have two functions, and .

Based the plot, I can see that they intersect around x equals 0, 1, around 4.5 and 10.

So I tried to find the numerical solution by solving  for x assuming x is real.

I'm stuck here because the aswer involves RootOf and _Z and I don't know what to do next.

This is what I've tried so far:

 (1)

 (2)

 (3)

 (4)

I know there's an answer to this because I can get the expected answer from Wolfram Alpha (see here).

How can I accomplish this in Maple?

## How to generate a matrix given a certain lenght an...

Hi friends!

I have the following problem.

I'm trying to generate a matrix given a certain lenght n and a polynomial g(x) of degree r as follows:

If n=10, g(x)=x^4+3x^3+x^2+2x+1 and r=degree(g(x))=4, then the resulting matrix will be

i.e. a matrix with 10 columns, n-r=6 lines, and whose inputs are the coefficients of the polynomial, as follows:

Any help will be very appreciated.

Thank you!

## linestyle_symbol...

Hi,

I have questions about linestyle in maple, how to change solid and Dash whatever  to line with cross or line with plus

Look forward to hearing from you as soon as possible.

Regards,

Mathastr

plots.pdf

## Under-determined Equation System yields "_t1[1]" v...

Hello Everyone,

I have an equation system which is under-determined and thus yields infinite solutions.
These usually come in the form of "_t1[1]" or similar variables. Mostly one, sometimes even two.
I am also working on a script for automated solving of a buckling problem and the solution yields of course these t-variables.
Everytime the code run, I get a different t-variable, which makes automation harder.

Please see attached code. (Of course simplified, not my actual code.)

It starts with a random matrix and a solution vector for the equation system.
The system is solved and its coefficients transfered to an equation.
However every time I hit "Enter" on the LinearSolve command, the name of the _t4[1] variable changes.

Is there a way to keep getting the same variable name? How do you work with this?

Best Regards,
Lennart

 (1)

 (2)

## Code Editor Syntax and Symbolic Solutions, Weird L...

Hello Everyone,

I am currently trying to tidy up my worksheet and hide all of the script/code that I wrote in the Maple 2D-Math within the execution script of buttons etc.
Was going well so far until I started transferring code where I was using a lot of symbolic math (if I understood correctly)
There is one instance where I have a variable chi which equals x divided by a.
a being a number, e.g. 5000, while x is and remains a variable.
No problem in 2D-Math as the unknown x is dragged through all following equations.

Not so in the code editor, I think. Doing the calculation results not in x/5000, but in this:

It keeps getting worse because this term will be derived, assembled into a matrix, etc. where the expressions are getting ridiculous:

Without getting into the details of what my script should do, I believe this is a very general issue, not specific to my code.

Is the code editor / "Code when Used/Clicked" not capable of symbolic math? Oder is there some setting that could potentially help me?

Best Regards,
Lennart

## Encasing Script in "Proc() / End Proc" makes the c...

Hello Everyone,

Me Again... So I have been working do create a procedure, but I started the coding without encasing it in the proc() / end proc; brackets, thinking I could add it later.
What the script does is take parameters and create a matrix and determines the determinant of that matrix.
When I let the script run on its own, it is working perfectly, but when I activate the proc() / end proc; brackets it suddenly gives me a number of errors, telling me the matrix is not square or that the if-loop misses its 2nd argument.

I am kind of suspecting this happens because I take the variable "NumberPlies" from a Table that exists outside the proc(), but on the same work sheet, but I am not 100% sure.
I have uploaded the code, so one of you experts could perhaps have a look and tell me where I am wrong. Why is the script behaving differently on its own compared to when I call it as a procedure?

Any help would be fantastic!

Best Regards,
Lennart

Anzahl Lagen des Laminates (Ohne Mittellage, eine Seite der Symmetrie):

Lastfall-Definition:

 (1)

 (2)

 (3)

Test_GetDet_MaplePrimes.mw

## Enforce non-trivial solutions when using dsolve...

Hello Everyone,

Firstly thank you for your help everyone with answering my other question yesterday, it really helped.
Today I present with yet another issue, which is dealing with solving differential equations using the dsolve-command.

I have written a script which is defining the differential equations, (some numbers), and the constraints. However when I let it solve using dsolve, I only get a very very trivial answer, meaning f(x) = 0.
of course this is a valid answer, but not one I can work with...
(Can I maybe give an additional information, e.g. the function type it is supposed to do this task? In the documentation there is information on setting it up as a series, but what about exponential equations?)

I have uploaded to script (very short), maybe someone knows where I went wrong?
Also, I am assuming that for solving a DE which involves a fourth order derivative I need exactly four boundary conditions, which I provided.
Things are also getting really wonky when I set Nxy to something non-zero... Then I get a solutions which involves a mysterious Z which never happened before and again all four C_x, which I assume resemble missing boundary conditions, reappear.

Any help would be fantastic! :)

Best Regards,

Lennart

 (1)