17428 Reputation

29 Badges

14 years, 141 days

On google groups. (comp.soft-sys.math.maple and sci.math.symbolic)

On stackoverflow.


MaplePrimes Activity

These are answers submitted by acer

Could you upload a small example worksheet that illustrates this? Are you saying that some of the (usually correctly displayed) content shows as question marks, or that the question marks appear where nothing was before then? acer
Have a look at this, showstat(`convert/binary/integer`); You may notice that it uses 32 to take integer remainders. So this next table below could also be useful, in understanding that is going on in that procedure. interface(rtablesize=50); `convert/binary/table`; It that procedure seems confusing, then read the help for routine irem(). You could also try this, trace(`convert/binary/integer`); convert(32^4+32^2+32,binary); You could try writing a procedure that is similar, which takes integer remainders by division by 16, say, or divide by 2 (in the latter case of which case a table isn't really needed). acer
What version of Maple, and on what platform, does that not produce the result like one gets from matrix(2,2,[1,2,3,-5]) ? It works for me, on Linux with Maple 9.5.1, 10.02, or 11. acer
Is this similar to what you are after? eqns:= {a(s,y,z,t)+2*b(s,y,z,t)=0,3*a(s,y,z,t)-5*b(s,y,z,t)=0}: linalg[genmatrix](eqns,[a(s,y,z,t),b(s,y,z,t)]); If not then you might have to explain what you mean by "the matrix associated to the system." acer
The labelled RootOf refers to an unspecified root. So in your case it may be meant to represent either root, rather than a particular root. If you would rather see the solution explicitly in terms of particular roots, then try it after, _EnvExplicit:=true: I would say that the section explaining _EnvExplicit within the help-page ?solve,details is not clear about its behaviour for systems of equations. It's not even adequately clear that the section -- describing behaviour governed by _EnvExplicit -- refers only to the case of a single equation. Also, the label in the solution to your example may seem confusing because it doesn't actually serve to distinguish between sets of unspecified roots -- which is what the help-pages suggest is its purpose. So why it it labelled? Why not just have it return the general unlabelled form in the solution to your problem, to specify "any" root? Why add in a label when the solution is meant to represent any root without qualification? While I'm at it, I don't really see where in that ?solve,details help-page is an explanation of why solve(x^8-3) returns all eight explicit solutions by default. Instead it hints that it might do the opposite, by claiming this: "The solve command returns explicit solutions for low degree polynomial equations (by default, degree less than 4). For higher degree equations, implicit solutions are given in terms of RootOf." acer
In my Maple 11, > _EnvAllSolutions:=true: > solve(sin(x)=1,x); 1/2 Pi + 2 Pi _Z1~ From the help-page ?solve,details , - The solve command returns all solutions for polynomial equations. In general for transcendental equations, the solve command returns only one solution, but does not set _SolutionsMayBeLost to true. To force the solve command to return the entire set of solutions for all inverse transcendental functions, set the environment variable _EnvAllSolutions := true. In the solution, Maple may generate variables that take numeric values. Normally such variables are named with the prefix _Z for integer values, _NN for non-negative integer values, and _B for binary values (0 and 1). If other conditions on these values apply, then the conditions will be converted to assumptions and simplified, if possible. If such conditions are sufficient to allow Maple to determine that the variable may only take on a finite number of values, then the full list of solutions can be requested by setting _EnvExplicit := true. acer
How about setting _EnvAllSolutions:=true; and have a read of the ?solve,details help-page. acer
The argument f(y) gets evaluated immediately, when passed to plot(). That is, you're seeing the same error as if you'd issued f(y) at the top level. This is the way Maple works, arguments to a function get evaluated, before the function gets its hands on them. There are several ways to get your example to work, given this characteristic of Maple. I'll show two below. You may wish to delay the evaluation of f, which can be done by using so-called uneval (un-evaluation) quotes or by using the operator calling sequence that plot() accepts. Try, plot( 'f(y)', y=0..2 ); or plot( y->f(y), 0..2 ); note. You shouldn't have to use f at all; your test() function could work, I think. That's a sidebar, about an extra unecessary function call in your example. It isn't the cause of the problem you had. acer
Do you mean an elementwise product? Ie, for Matrices A and B, zip(`*`,A,B); You may also use LinearAlgebra[Zip] for this effect. Note: If A and B are Arrays, then this is what A.B produces. acer
Would it be possible, and less lossy, to first export the plot to (MS-Windows) bitmap format? I guess that this might only be an option on Windows.. acer
My first advice is to use the top menu to do File->New->Worksheet Mode , and then Tools->Options-Display and set Input display to Maple Notation. For a new user trying to understand maple programming and syntax, this would be a better mode for using Maple. F:=(X^5) + 3*(X^2)+1; dFX := diff(F,X); Xo:=-2; eval(F,X=Xo); eval(dFX,X=Xo); for i from 1 to 10 do Xnew := evalf( Xo - eval(F,X=Xo)/eval(dFX,X=Xo) ); Xo := Xnew; end do; I have used expressions above, instead of functions. Georgios' suggestion to look at the functional operators page is good too. You can use expressions, as I did above, or functions (operators) as he shows. What won't work is the mismatch between the two which you originally tried. don't feel bad about it. It's a common initial misunderstanding about Maple. acer
I'm not quite sure what you are after. Is lprint() sufficient, to give your expression back in a format suitable for subsequent maple input? Eg, f := (a^5+b^5)/(a+b): lprint(f); Or, do you have some other examples for which you want to delay any evaluation or simplification at all, prior to printing. Eg, (x+2*x)/7 is the expression say and you wish to prevent the numerator from simplifying to 3*x ? There are a few tricks for that, one of the weakest of which is, f:=`(x+2*x)/7`; parse(f); acer
If you wish to apply some theory yourself then you could first try a web search for Descarte's rules of signs, or the Sturm theorem. In Maple 11, for a univariate polynomial with rational real coefficients the new command RootFinding[Isolate] can bracket the roots within rational intervals. Judging by the Description in its Maple help-page the underlying methods that it uses do not work internally with floating-point numbers, and do not miss roots due to round-off or related issues. You did not mention whether the coefficients are rational or floating-point. If any of the coefficients are floating-point real number approximations then you could use fsolve rather than RootFinding[Isolate] directly. acer
Could you instead use the Matrix-form of Optimization[LSSolve] and provide the restriction (to avoid a subregion whose boundary is described by your "complicated function" of the two parameters) as an additional constraint? acer
You probably wanted your second line to be like this, so that A gets assigned the procedure. A := proc (k) As posted, there was only the start of an equation, like this, A = proc (k) acer
First 194 195 196 197 198 199 200 Page 196 of 201