by: Maple 18

## Getting a value of a constant...

Hello everybody,

While doing a document about quantum mechanics, I stumble on this strange behaviour.

>with(ScientificConstants);
>GetConstant();
>GetValue()

Error message:

Error, (in ScientificConstants:-GetValue) a[0] is not a scientific constant object

But in the Assistant Scientific Constant, the value is there: 5.291772e-11m

Why is it not directly available like I did the first time?

--------------------------------------
Mario Lemelin
Maple 18 Ubuntu 13.10 - 64 bitsMaple 18 Win 7 -  64 bits
messagerie : mario.lemelin@cgocable.ca
téléphone :  (819) 376-0987

## Division of maple worksheet...

Hello,

I would like to ask if one can divide the maple worksheet (mw) to multiple files like series of command. It could be simillar to include in C++. I have found only save and read command but they can be use only for variables or they can be use in other way ?

Thank you for any possible solution,

vidocq

## cat a subscript also as an input from a function...

f:=C->sum(x[cat(new,c)],c=1..C);

f(4) # does not give me what i want , which is

x[cat(new,1)]+x[cat(new,2)]+x[cat(new,3)]+x[cat(new,4)];

seq(x[cat(new,c)],c=1..4);
convert([%],+);

This works. But it's just a simple example to illustrate my problem.

Is there a way to fix this 'cat' problem in the procedure 'f'?

Thanks,

casper

## A tiny latex (from Maple) superscripts problem...

v1:=[seq(tau[lambda,i]^2,i=1..5)];

latex(v1);

gives:

[{\tau_{{\lambda,1}}}^{2},{\tau_{{\lambda,2}}}^{2},{\tau_{{\lambda,3}}
}^{2},{\tau_{{\lambda,4}}}^{2},{\tau_{{\lambda,5}}}^{2}]

which produces a non natural output in latex, see below.

I wonder it could be improved in the future release?

'latex' command is really useful when i have large algebric output. But having to change this tiny thing at many places is just very time consuming. I'd really appreciate if this can be fixed in updates or future versions of Maple.

Casper

## simplify and function with arguments...

Hi all,

I will use the following dummy example.

with function,f

f:=(xid,yid)->sum(x[i],i=1..xid)*sum(y[i],i=1..yid);

and a complicated term, myterm

myterm:=(f(3,4)+f(2,2))*f(1,1):
myterm:=expand(myterm);

'if' i have some previous knowledge, or know a bit of the term, i can find the structure by doing this

repar:=[f(1,1),f(2,2),f(3,4)];  # Or with more f(xid,yid) terms

tmp:=seq(repar[i]=ff[i],i=1..3);
simplify(myterm,{tmp});          # This is fine, gives me what i want

But, can we go further, and more 'obvious'

Given the fucntion f, same as before, and the same 'myterm'

can I have this
restart:
iwant:=(f(3,4)+f(2,2))*f(1,1);  # as a result, straightforward

so I dont have to go back to 'repar' and find that the terms exactly are.

Thanks,

## return the indicis of a value from list...

Hi, with a list

l:=[1,1,1,2,3,3,4];

What's the best way to get the index(s) for the values equal to '1'?

Say for x=1, we want

[1,2,3]

for x=2, we want

[4]

ect.

## How to take away each element in a Vector in turn...

Hi say I have the vector V1.

V1:=Vector([a,b,c,d,e,f,g]):

and function myfun.

how do i use it as the input to the function my fun, by taking away each element in turn?
myfun(V1[2..]);              # 1st element removed
myfun(V1[[1,3..]]);         # 2nd element removed
myfun(V1[[1,2,4..]]);      # 3rd element removed

and so go

is there a more efficient way?

Many thanks,

## Operations with Vectors - Scalar and Vector

Maple 18

Addition, subtraction, scalar product, vector, projections and graphs with physics packages and plots. With this you can begin to start the physics course for engineering.

Operaciones_con_Vect.mw   (in spanish)

Lenin Araujo Castillo

Physics Pure

Computer Science

## How to change permanently the font size...

Hello everybody,

Since I am geting older, I need to fix the font size form 12 to 14.  I have been tryong to find where to do that permanent change.  But without success.  Could someone help to to resolve this problem.  Thank you in advance for your help.

--------------------------------------
Mario Lemelin
Maple 18 Ubuntu 13.10 - 64 bitsMaple 18 Win 7 -  64 bits
messagerie : mario.lemelin@cgocable.ca
téléphone :  (819) 376-0987

## pick up by the sum of the list elements...

Say I have this list,

tmp:=[[0, 1, 2], [1, 0, 2], [1, 1, 2], [1, 2, 0]];

and the sums of each element (list),

map(x->convert(x,+),tmp);

How do I quickly pickup the elements, where they sum to 3? Like this:

wanttohave:=[[0, 1, 2], [1, 0, 2],  [1, 2, 0]];

Thanks,

## Maple 18 and touch screens (Windows 8)...

When I try "touch and drag" in Maple documents, the documentation for example, I end up selecting text instead of scrolling. Unfortunately the alternatives for scrolling are a) the scrollbar, b) page-up/down or c) moving the cursor. Each of those alternatives is about 2.5311 orders of magnitude more inconvenient than touch&drag.

Does anybody know if its possible to get Maple (18) to scroll instead of select text when I touch the screen?

## m 18 cubacuhre integration fail, intergrand unknow...

m 18 cubacuhre integration fail, intergrand unknown

 >
 >
 >
 >
 >
 >

m 18 cubacuhre integration fail, intergrand unknown

## Pi Symbol not diplayed...

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

## Error with function using Units...

Please see the attached worksheet for the error at the end, any idea what happens?

Besides, anyone know how to make plot array with each element has a plot and scatterplot in it?  I made my plot by making table first and then type the cmd individually.

Raw Data

Table 1: Compactability Curve

Table 2: Compressibility Curve

 (1)

 (2)

por1(x);

 (3)

 (4)

Target Weight of Tablet, :

 (5)

Tablet True Density:

 (6)

Width of tablet

 (7)

Length of tablet, l:

 (8)

Cup Depth, h:

 (9)

Cup Volume

 (10)

Die cross sectional area, :

 (11)

Equation to solve tablet thickness using tablet dimension and porocity:

Tablet bulk density:

 (12)

Tablet volume:

 (13)

Tablet bulk Density:

 (14)

 (15)

Function for thickness:

 (16)

 (17)

Tablet tensile strength:

 (18)

Break force of tablet (N)

 (19)

 (20)

 (21)

 (22)

 (23)

 (24)

Encounter problem while chaning variable

BF:=

 (25)

 (26)

but por1 works fine on its own with units

 (27)

plot(evalf(por1(xx)), xx = 10 .. 200);

I also used a lot for for loop in this worksheet, can anyone suggest another way of doing it? And I think I initiated many Array(1..3) that is of no use.  But if I do not initiate and do the following

A[1]:=a :

A[2]:=b:

A[3]:=c:

A;

output: A

Only if I initiate A:=Array(1..3) and then define the element I can see the complete A array at the end.

 First 73 74 75 76 Page 75 of 76
﻿