Items tagged with symbol symbol Tagged Items Feed

Hi experts

 

In a procedure with no declared parameteres I would like to return (print) the passed arguments (expecting Matrix structures) in a modified form along with the name of the symbol holding the structure passed as arguments.

 

That is, the procedure just iterates through the _passed arguments in a for-loop to display the name of the the passed argument (the symbol), a colon and then the modified matrix structure.

My problem is that when looping from i to _npassed arguments, refering to _passed[i] gives me the evaluated form.Tat is what I need to modify the structure but not to list the symbol name.

 

Say I wanted to print a transposed version of my passed matrices. Then I would call

M:=<<1,2>|<3,4>>;

myProc(M);

And the result I want would be

M: <<1,3>|<2,4>>

But I don't know if _passed holds the symbol names or just the evaluated versions of the passed arguments??

And theoretically the passed argument (assuming a matrix) could be the matrix structure put directly in the procedure call, in which case there is no symbol to refer to.

 

I hope you get my question and can help me out.

 

Thanks

Simon

 

Just got Maple 18 on academic license. I've used Maple 15, 16 and 17 before this.

It wont write simple math symbols as + - * and := 

I have tried both document- and worksheet, reinstalling and so on...

 

What is the problem?

Thanks

Hi, those who are in mapleprimes.

 

i have a problem in solving inequality with symbolic notated parameters.

I wrote the following code to solve for n(SPH), but couldn't obtain any result but an error message.

solve(-s*(-n(SPF)*tau+n(SPH))/(tau-1) <= n(SPH),n(SPH)) assuming (tau<1,s>0,s<1,tau>0);

 

The error was

Error, (in assuming) when calling 'unknown'. Received: 'invalid input: Utilities:-SetSolutions expects its 2nd argument, solutions, to be of type ({list, set})({piecewise, ({list, set})({name, relation})}), but received [s = -tau~+1, [SPF = SPF, s = s, tau~ <= 0]]'

 

Please tell me how I should do to solve the inequality.

 

Thanks in advance.

 

taro

 

How do I get the vertical bar "divides" symbol in Maple 18?

Hi everyone,

I have a maple program that generates a polynomial g(y)=(80y^8 + 68y^6 + 12y^4 -4y^2 -1). This polynomial has two real roots (irrational roots), call them +/- y*. My code does a sequential calculation, and often sI am left with a higher order polynomial in y that has the form h(y)= p(y)*g(y), where p(y) is also a polynomial in y. This polynomial h(y)=p(y)*g(y) is not in factored form (i.e. it would look like expand(p(y)*g(y)). Is there a way to instruct maple to recoginize that +/-y* is also a root h(y)=p(y)*g(y)? So far I've tried things like applyrule([g(y*)=0],h(y*)), but nothing seems to work (I suspect because Maple cannot recgonize that g(y) is a factor of h(y)). I am not interested in computing this numerically. I am just trying to find a way to instruct Maple to recognize symbolically that h(y*) =0.

Thanks a million for anyone who has any idea.

Best,

 

Justin

Hi Mapleprimers,

I was wondering if there way a way to use restart(); and clear Maple's memory, but protect the memory in a certain variable?  I would like to return the memory to the operating system, but keep a symholic function in memory.

Alternatively, is there a way to save a symbolic function to a file, then reload it at a seperate time?

 

Hi,

I have been looking at some new models of Casio Scientific Calculators and came across with "Fx-115es Plus" Model which seem to have a some sort of simple CAS(Computer Algebra System) built into it.


Two new features which i really liked were

(i) Ability to make any part of the expression inert and simplying the rest.

(ii) Fully Integrated Repeated decimal display for fractions.

 

I want to ask if there is any builtin commands that can achieve these two effects in maple.

I will give some example for each of these

(i) simplifying say 2^3*2^4 in maple gives 32.

but forexample if i want to make 2 in the bases inert then simplifying the result should give 2^7

if i make 3 inert then the result is 16*2^3

if i make 4 inert then the result is 8*2^4

another example say (2^3)^4 in maple gives 4096

but if i make 2 inert then the result should be 2^12

if i make 3 inert then the result is 16^3

if i make 4 inert then the result is 8^4

In this way it is possible to keep any interesting part of large complex expression unevaluated and simplifying the rest across it to maintain focus on the interesting part.

I know i can try to achieve this effect by using unevaluation quotes but they get messy and harder to track in large nested forms.

Another approach might be to replace the inert parts by explicit undeclared symbols with required assumptions and simplifying, but this is not it.

I know in Maple 18 they have introduced some package called InertForm or something, can it achieve this effect and also mark inert parts of the expression as grey like it is possible for some operators.

(ii) the example for the second is quite obvious, say given the fraction 237/14, evalf of this gives 16.92857143 but a result like 16.9Overscript[285714, _] is more closer to differentiation it from a irrational expansion. Sorry i donot know how to pretty print this here.

Another advantage is when i want to give some large repeating decimal expansion and have maple convert it to fractional form. Currently i have no idea how many times to repeat the decimals explicitly to make maple understand that it is a repeating decimal expansion.

Hi,

 

I am completely new to Maple (and this kind of software in general).

I am just on my first steps of learning...but I quickly noticed, that if I write Pi and hit enter, I do not get

the well-known greek Pi-symbol. I get an ordinary "p" as the result.

I checked the greek-palette...nearly all items in this palette are ordinary letters.

Does anyone have an idea whats wrong?

BTW: I don`t know if it could have to do with that, but I use a german windows 7 installation.

 

Thank you,

regards,

Kai

Here is a plot in table format of the standard Times, Helvetica, and SYMBOL fonts. This plot provides a reference table that can be used to find the character codes to plot any one-byte character that can be plotted, which is especially useful for the SYMBOL characters and character codes 128-255 in the standard fonts. These characters are available for plotting in both the Standard and Classic GUIs.

All characters are aligned to be immediately above and immediately...

Hi

Could someone pls help write me code such that when text is entered, the first chemical element symbol in each word is identified and highlighed.

i/p: "the cat molly"

o/p: "tHe Cat Molly"

( like the opening title sequence on "Breaking Bad")

I got out the sledghammer and made a start

element.mw

Thanks a lot Markiyan, and I am sorry I may have overlooked this already answered question. But, now I have just one more thing to know. On using AllSolutions = true in solve I get the answer as x = _z1~ ∏ / k, I then try to subs my fav symbol N instead of _Z1~, but Maple doesn't take it! It keeps it as it is. What kind of constant is this _Z1~, I had thought it to be the same as _C1, which is used by Maple while solving any ODE.

Reason why I want to...

Some calculus problems are worked out with the differential formatted as a function prime (f', G', etc.). How do I enter a function with the prime symbol so that Maple will treat it consistently? I recall entering f'(x) once in the legend of a Plot. The legend, as output, was in 2D format d/dx(f(x).

Another variation on my question is this: If I enter diff(x^2,x), or d/dx x^2 in 2D Maple, and calculate, I get 2x. If there a way to enter f'(x^2) to get the derivative?

Hi, I am creating a plot to demonstrate symmetry about the y=x axis, and I want to show that the line segment connecting two points is the perpedicular bisector of the line y=x. I have plotted y=x, the two points, and the line segment connecting those two points. How do I plot the perpendicular symbol (or right angle symbol) that is connected to the lines and shows that they are indeed perpendicular?

Hi all! 
Is there any possibility in Maple to perform symbolic operations with arbitrary matrices (possibly given only the size of the matrix or it's structure (block matrices, diagonal matrix and so on)). For example, I would like to obtain the following results (input -> output). 

Possible code: 

assume(A, Matrix(n)): assume(B, Matrix): assume(E,IdentityMatrix(n)): 

Dear All,

I am trying to find (complex) eigenvalues and eigenvectors of a matrix as a function of a variable. Using the following commands lead to the respective errors:

- LinearAlgebra[Eigenvalues](A): Error, (in content/polynom) general case of floats not handled

- LinearAlgebra[Eigenvectors](A): Error, (in LA_Main:-Eigenvectors) cannot determine if this expression is true or false: 0.2480392156e-4*abs...

1 2 Page 1 of 2