MaplePrimes Questions

 I want to find all real roots of   equation x^2 + floor(x) - 10=0

restart: 
solve(x^2+floor(x)-10,x) assuming x::real 

maple tells me:

  RootOf(_Z^2 + floor(_Z) - 10)

allvalues(%) 

RootOf(_Z^2 + floor(_Z) - 10, 2.828427125 + 0.*I)

even though  usRealDomain.

use RealDomain in  solve(x^2+floor(x)-10,x) end use

We get nothing!

So I trun to use fsolve.

plot(x^2+floor(x)-10,x=-5..5)

                                  

s:=fsolve(x^2+floor(x)-10,{x});
fsolve(x^2+floor(x)-10,x,avoid={s})

                     s := {x = 2.828427125}

                          -3.741657387

 

I try to use mathematica, it is good:

Solve[x^2 + Floor[x] - 10 == 0, x, Reals]

Could Maple  do that?

 

 

 

 

 

 

Hello,
In the same spirit of my previous question about converting a Mathapp to a GIF format, ( for educational goal)  Ideas?

Thanks

 

Fibonacci.mw

With showstat( )  i can see procedure body 
But it is also possible for tools : assistant, math apps, tutors and tasks ?

In library all proc are public.

I'm willing to draw phase portrait for the equation of ode fifth order

u'''''+6(u'u'''+(u'')^2)-u'''(a+2b)=0

where a and b are arbitrary constant not equal to zero and (') represents derivative w.r.t  'x'.

I'm getting no solution for the attached pdf.  Kindly suggest!

Maple Worksheet - Error

pde.mw

Hi dears

Just a simple question: I am trying to restore the coefficients of a polynomial in a vector, respect to a list of variables. For example

f:=a*u[]*u[1]*u[2]+b*u[1]*u[2]+c*v[]*v[1]*u[2]+d*u[]*v[1]*v[2]+d*u[]*v[1]*u[2]+f*u[]*v[];
    f := a u[] u[1] u[2] + c u[2] v[] v[1] + d u[] u[2] v[1] + d u[] v[1] v[2] + b u[1] u[2]+fu[]v[]
collect(f,{u[1],u[2],v[1],v[2]},distributed);
       (a u[] + b) u[1] u[2] + (c v[] + d u[]) u[2] v[1] + d u[] v[1] v[2]+fu[]v[]

 

in above example I intend to keep (a u[] + b) and (c v[] + d u[]) and d and fu[]v[] in a vector or a varieble. Is there any comments?

Thanks indeed in advence

Here in the above graph we are trying to find the longest distance between two vertices For example now say we consider vertices v_2 and v_4 in the above graph 

P_1 , P_2 ,P_3 are different possible path length in the above graph between v_2 and v_4  and it can be seen now the longest distance is 3 as it is the greatest among all lengths between v_2 and v_4

 

AllPathshortest only does the shortest path

 

can anyone help in the in general  finding the longest path between two vertices a graph if i give the

graph and the two vertices it should longest distance

here between v_2 and v_4 longest or greatest distance is 3 which should  greatest length of the several different paths between v_ 2 and v_4 itself

it should display that value.

kind help if anyone can

See the following code

restart;
u:=Vector(1);
u[1]:=1;
x1:=sum('u[i]^i','i'=1..1);
u[1]:=2;
x2:=sum('u[i]^(i)','i'=1..1);
x3:=sum('u[i]^(i+1)','i'=1..1);

When I run x1=1 and x2=1, but x3=4. But x2 should be 2. I presume this has something to do with the fact that when sum sees u[1] it already thinks it knows what u[1] is, but when it sees u[1]^2 it recalculates.  I realize that "add" would solve the problem here, but I thought for short sums sum called add. Suggestions?

 

 

Hi,

I am working on a series of educational activities on the added value of the GIF format in collaborative work.
How to convert this Math App to animated format , exportable to GIF, keeping all variable values ( Circle area, Polygon area. ) Ideas? In advance Thank you

MathApps.mw

Hi,

   My question should have a straight forward answer but after considerable searching I am unable to find one that is satisfactory. I am new to Maple.

I am writing an exam question, and I would like to change the parameter values to create different versions of the same question. I begin by defining the parameters and defining the supply schedule:

n:= 10: alpha:= -60: beta:= 20:

Qs:= alpha + beta*P;

The question with text and inserted math appears as follows (after each math expression I use CTRL = to generate an inline expression):

There are n = 10 identical firms. Supply is given by Qs = 20 P - 60. When P := 4 = 4 then quantity supplied is equal to Qs = 20. Calculate the ...

What I want instead is the following:

There are 10 identical firms. Supply is given by Qs = 20 P - 60. When P = 4 then quantity supplied is equal to 20.  Calculate the ...

I want the values highlighted in blue to update if I change the values for n, alpha and beta, and then click the !!! button in the Maple menu. I am okay with moving the "P = 4" out of the question and defining it as a parameter along with n, alpha and beta. However, when I do this Qs evaluates as a value rather than the Qs = 20P - 60 expression.

Thank you very much.

 

 

Hello,

How one can plot a vector (field) defined in Physics[Vectors] package ?

with(Physics[Vectors])
F_:=r _r + phi^2 _phi

I could normally use fieldplot/fieldplot3d from plots package to plot vector fields from VectorCalculus package, but with Physics[Vectors] package, I am not sure how to plot these. Can you show me a way to plot Physics[Vector] vectors?

 

We have just run into a problem (loss of data), when 2 users have opened the same workbook.

Does Maple support Multiuser access to a workbook, and if not - why isn't there any lock mechanism in place to prevent that?

Should be that i was thinking on the use the arrow operator for a function definition and to use this for graphing this function
It becomes complicated.


 

restart;

 

the following piecewise-defined function was considered

exc set 4 task 1a
                                                                                

sin(3*x): # x <= 0 .. must be evaluated to true or false for branching to      #other second function
sin(x/3): # otherwise

h:=proc(x)
   if x<=0 then sin(3*x)
   else sin(x/3)
   fi;
end proc:

maplemint(h);

h(1); #

sin(1/3)

(1)

h(1.0);

.3271946968

(2)

Strange that this function notation e.g h(1) can be used for a expression ?, while the idea was to use this only for a function defintion with a arrow operator  ( function as a procedure )
Seems to be possible to use the notation e.g : h(1) or h(1.0) if the input parameter is numeric for a expression.

 

The condition in the if statement must be(can only) evaluated numeric..that seems to be not possible with the arrow operator definition in the procedure.

 

h(x);

Error, (in h) cannot determine if this expression is true or false: x <= 0

 

plot('h(x)'); # delay of the evaluation of h(x)

 

plot(h);

 

 


 

Download exc_set_4_task1.mw

 

I discovered the LinearAlgebra package can use CUDA, 

CUDA, the Compute Unified Device Architecture, is an extension of C created by nVidia that allows the programmer to take advantage of the massive parallel computing power of an nVidia graphics card to do general purpose computation.

I also discovered that my new GTX 1660 Ti graphics card has 1,536 CUDA Cores, and the Maple CUDA package allows Maple to use the GPU hardward to accelerate certain LinearAlgebra routines.

The Maple command calling sequence is

CUDA[command]( arguments )

command( arguements )

But that is all I know.

Do any of you know just how much Maple can do with this sort of thing?  I've only had my individual license a couple of weeks so I don't have any perspective on what this means for Maple.

Can a lot of Maple make use of this sort of thing, or just a little bit?

Are there any other facilities in Maple that can make effective use of CUDA or any multi-processing like fully engaging all the coomputers CPUs?

I am interested regardless where the capabilities are implemented since enhancement can come from Maple, extensions, the Windows OS, the CPUs, or grahics card.... or any combination of these.

I rescently downloaded and installed my new Maple 2020 on my Windows 10 64x computer.

I noticed this in the install log:

   Log started 06/13/2020 at 03:25:42
   Preferred installation mode : win32
   Trying to init installer in mode win32
   Mode win32 successfully initialized
   Preparing Check for Update Tool
   Checking for Maple 2020 Updates

My question is this:  I know that under windows 10,  32 bit progams will generally install on even if a computer is 64x.

So should have Maple installed under mode win32?  Is there a 64 bit mode that will take better advanage of the system?

For that matter, is there any configuring that can install it or configure it to take better advanatage of the multi-threaded hardward capabilities?

Thanks, JS

( edited after the fact

BTW I tried to give your comment, kernelopts(wordsize) as the best answer, but it wouldn't let me because it is a comment.  So I gave your previous answer the credit.

kernelopts(wordsize) really hits it on the head for me.)

First 411 412 413 414 415 416 417 Last Page 413 of 2308