Items tagged with variable variable Tagged Items Feed

Hello,

 

I have a very important question that I can't seem to find anywhere in the literature.  I am trying to create a procedure to do something that would be seeminly impossible by hand.  In doing so, I need to create exactly 729 variables, which I would like to simply call x_i for i=1...729.  Yet the problem is that I don't know how to define the variable x_i during the procedure.  For example, I would like to do something of the sort:

I want to omit the independent variable

 

for example:

> alias(f = f(x+y, z+y));
print(`output redirected...`); # input placeholder
                               f
> f1 := z = f(x+y, z+y);
print(`output redirected...`); # input placeholder
       ...

 

E := proc (phi) options operator, arrow; int(1/(1-(1-1/kappa^2)*sin(phi)^2)^(1/2), phi = 0 .. phi) end proc

E(pi/2)

 

Is there a way to get this function to work properly without having to simplify the integral manually ?

kappa is a constant (with a value of 12.4)

 

Thanks in advance!

utilde, xtilde as variables?

April 29 2012 by LBrandt 0 Maple 16

There is a utilde on the Latin pallette, among others. How do I get xtilde as a variable?

I have to plot a variable in a diagram which is updating itself. The Variable is the area of a various triangle and the  value has to be plotet in a view of the triangle. How to do this? 

Heya,

I am trying to plot a graph in Maple on the (u,v) plane and I am struggling to work out how to do it.

Consider the change of variable

x=u^2-v^2                    y=2uv

Plot the lines in the (u,v) plane where x and y are constant.

If anybody could help  me in plotting this graph I would be very grateful.

Thanks.

Hello.

if I write N[0]:=1; and press enter, I will get the response

N[0] := 1

Now if in my large document I happen to have defined a variable b:=5; then later 
I try to define another variable N[b]:=1; and press enter, I get this response:

N[5] := 2

But N[b] has nothing to do with "b". Why does Maple do this? Is there 
some concept I am missing? In what context is this useful?

many thanks.

Hi,

I would like to discribe the following function.

w(ξ,s):=N(s)*w(ξ)

N(s) and w(ξ) are both matrix. I have defined N(s) but will be searching for w(ξ) much later in the process. Why does it not allow me to define a partial derivative of w(ξ) now for future use? d/dξ(w(ξ)) is not allowed. it says that "Error, invalid input: w uses a 2nd argument, s, which is missing". But my w(ξ) only depends on the variable ξ.

2nd question, how do i tell maple that x...

Redefining variables

January 18 2012 by icegood 255 Maple

For next list of variables 

RVars:=[[''Rla'',''Rlb'',''Rsa'',''Rsb'',''RN''], [''GAL'',''GBL'',''GAS'',''GBS'',''GN'']];

(no double qoutes, 2 single quotes, of course)

want all of them to be redefinable with suffix option i.e. both of operators below

assign(m || (RVars[1,1]), 5);

assign( RVars[1,1], 5);

should be reentered without restart as many as wish. With 2nd form everything...

Digits:=20;

p:=proc() global Digits; Digits:=Digits+5;end proc;

Digits;

Obtained 20 at the end. Which variables has also such property of "recoveriability" after proc call?

HI,

 

at first I have to admit, that I'm totaly new to maple and have only few experience with the programm.

 

That's the problem. I've got an old maple-code which I want to rewrite in the 2d-Math-syntax. In the code there are a lot of variables of the type "numerical integer" with a form like

"rho_a"

"N_A"

....

--> with index in the name

It's a code for a physical-/chemical- process so the...

Add on to Guide

November 30 2011 by awehring 35

Thank you, Joe Riel !

 

I add your hint to my guide:

To get a variable conjugate(Y) is easy:

alias(conjugate(Y)=YB)

To get the bar above Y, you press Ctrl + Shift + " and then Underline

A little bit tougher is ...

It's a simple question, but I could not find a hint in the help system.

In economics it is very common to name variables like Y*, π* etc. They are unique, e.g. Y* ≠ Y

How can I enter them? If I just do it, it is interpreted as a vector function.

From time to time, you even need variables that have an overline (or bar),  above the character in addition to the asterisk, or variables like Â*.

A similar problem are variables that are named y' ...

Hello,

I'm new at maple and I was wondering if someone could help me. I've got a function with 3 variables:

v1'=(v1*sqrt((1+u)^2-4*u*cos(b)^2))/(1+u)

Can you plot this function? Or do I have to give one or two variables a value and plot the function 3 different times with just one variable?

Thanks

Hello everyone.

When exporting by an multibody attachment, the name of the variables exported from a revolute or translational joint, are set by default, like "s_P2(t)", "theta_R", etc. If I wanted them to be named "x(t)",... , what will I have to do?

Is it possible to do directly, without using an alias?

1 2 Page 1 of 2