Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Dear all

I get any error when do sum opereration on elements matrix

please correct me

thank you

Download Question-3.mwQuestion-3.mwQuestion-3.mw

I'm writing firmware for a floating point unit on a DSP.

The single-precision (32-bit) number format includes:
· 1 sign bit: 0 means the value is positive and 1 means the value is negative.
· 8-bit exponent: This exponent is biased to allow for both positive and negative exponents.
· 23-bit mantissa: The mantissa includes an implicit leading 1 plus the fractional bits.

Is there a way to define the float as 32 bit and then convert it to binary representation in maple?

Or would I have to manually compute it in maple?

Thanks for your help

Reference 

Here is a worksheet with the calculations I describe below: subintomatrix.mw

I have a simple three dimensional linear system and I want Maple to solve it for me. 

Using LinearAlgebra:-LinearSolve, the solution is the parametrized Vector (t,-2t,t), which I save to a variable solution.

I'd like to be able to substitute a value into t.

eval(solution, {t=1}) does not work, unfortunately.

I can save a variable M (actually a matrix) using

save M, "Test" or save M, "Test..xyz"

where .xyz can be any file extension except .m  This saves the variable in "Maple language format" and it can be restored using

read "Test" or read "Test.xyz".

But if I save with a .m extension

save M,"Test.m" then

read "Test.m" does not seem to restore the variable. What am I missing?

Secondly, is there a recommended file extension for a Maple language format file created with the save command?

xwhat is the fenchel conjugate transform of f(x)=x*x2*x3 over xi in R?  the general question is what is the fenchel transform of a polynomial that is not a quadratic?

I am aware of the palette that has this symbol, but I want to be able to type it as this is way more efficient use of time.

How do we type it in?

How should I draw a 2D graph for which one parameter in x axis and 3 parameters in y axis change with respect to x axis parameter in same graph. To be exact in my problem for changing β value (in x axis) what will be the optimum value for p, q and e. I had obtained the optimum p (named as ptemp in file), optimum q (named as qtemp in file), optimum e (named as etemp in file) for different values of β. But I don’t know how to plot it? Whether to give plot command inside the loop or not? Please help me. I am attaching the file with code and a sample graph. ( Find the problem in Numerical analysis - below in file)                                        new_assignment.mw

Consider the system of two equations 

x+y=2

x*y=4

Let's try to solve this using Maple's solve command.

This seems at first glance like one solution, but actually it is two, which I see if I use evalf.

Solving the equations by hand I get two solutions

y=1+sqrt(3)*i, x=4/y

y=1-sqrt(3)*i, x=4/y

If I use evalf on these two solutions I get the same result as the two solutions using solve.

My question is where does the expression y=2* RootOf(_Z^2-_Z+1) come from?

By hand, seems to be the solution to y^2-2y+4=0.

Hello guys,

List of points:

LT := [[1, 1, 0], [3, 2, 0], [2, 3, 1], [1, 3, 1], [1, 4, 2], [1, 5, 0], [2, 5, 1], [3, 5, 3], [4, 5, 3], [3, 4, 5], [4, 3, 2], [5, 3, 2], [5, 4, 1], [5, 2, 1], [5, 1, 0], [4, 1, 2], [3, 1, 2], [2, 1, 2], [1, 2, 1], [1, 1, 0]]

Does Maple have some function to sort a list of points to give the shortest path?

Regards,

Oliveira

I make the equations p0 and p1 equal to find y, and use the solve function, but always remind me of the following errors. How can I figure out y? Q in the formula is equivalent to a constant. Thank you for your answer!

Here is my program:

question.mw

I was just going through Chapter 4 - Basic Computations from the User Manual. I have a worksheet in Documenet mode where I put in the commands I see as I go through the Chapter.

I reached the part about using solve. I didn't know it was so easy to use the context menu to do things like solve numerically, use solve, etc. I typed in the equation x^3+2x-9=0 and tried a few of these options for solve. Many gave the answer 1.762496376, which is the real root.

Now, eventually, I wanted to see the two additional complex roots. But I never did.

Then I simply added a new line to the worksheet, copied over the equation, and tried the option solve directly. Now I see three solutions.

Next, I added yet another line and executed solve(x^3+2x-9=0) and got three solutions again.

What I don't understand is why the first line, even now, doesn't ever return the three solutions. I choose solve from the menu but it only returns the real root 1.762496376. 

Here is the exact worksheet I am using: 4_-_Basic_Computations.mw

There is a text in bold that says Solving Equations and Inequations and the problematic command is on the line after that. 

(once again, I was not able to insert the worksheet contents here, would also like to know why this never works for me).

I open the command-line of maple 2022, and I can run the code alone. But when I save it in a text named ``6conn.txt", I don't know how to run it.

with(GraphTheory):
g:=Graph({{0 ,1},{3 ,4},{4 ,1},{1 ,3},{3 ,0},{0 ,4},
{2 ,1},{4 ,5},{4 ,2},{3 ,6},{4 ,6},{6 ,5},{1 ,6},{6 ,2},
{5 ,0},{0 ,2},{2 ,5},{7 ,8},{12 ,10},{10 ,11},{11 ,8},{8 ,10},
{10 ,7},{7 ,11},{9 ,8},{11 ,12},{11 ,9},{10 ,13},
{11 ,13},{13 ,12},{8 ,13},{13 ,9},{12 ,7},{7 ,9},{9 ,12},
{8 ,2},{13 ,0},{10 ,5},{12 ,3},{1 ,9},{7 ,6}
});

I tried  .\E:\\6conn.txt or !E:\\6conn.txt. Neither seems to work.

6conn.txt

I have plotted in the same display a pointplot and a constant (a horizontal line)..

The worksheet is:

restart;
with(plots);
plot1 := plots[pointplot]([seq([r, 1 - combinat[numbperm](180000, r)/180000^r], r = 1 .. 1000)]);

plot2 := plot(0.25, r = 1 .. 1000);
display({plot1, plot2}, axes = boxed);


How do I solve for when the constant plot2 is less than plot1? I know at r=323 it goes above the threshold, but I don't know how to show this in an expression in Maple, and I've looked for several hours now, both Google search and on Maplesoft with no luck.

First 132 133 134 135 136 137 138 Last Page 134 of 2097