12 years, 5 days

## math apps...

This already has been programmed in similar form, see help("mathapps,electromagneticwaves")

Click "edit startup code" in the icon bar for the program.

.

## numcpus...

see ?kernelopts,numcpus for this purpose. Example:

to query the number of currently used cpus:
kernelopts(numcpus)

limit to 2 cpus:
kernelopts(numcpus=2)

## local variable...

another Option:

local Pi:=sqrt(2);evalf(Pi);

#global meaning can be accessed with :-

evalf(:-Pi);

## plot...

S[1] := .51-.67030*t+.4644645000*t^2-.2542824350*t^3+.1337509523*t^4;
S[2] := .29-.37330*t+.2539795000*t^2-.1337383850*t^3+0.6737783824e-1*t^4;
S[3] := 0.6e-1-0.6280e-1*t+0.3392700000e-1*t^2-0.7715060000e-2*t^3-0.2012235525e-2*t^4;

plot([S[1], S[2], S[3]], t = 0 .. 2);

#if this should be a parametric plot in 3D, use this:

plot3d([S[1], S[2], S[3]], t = 0 .. 2);

## a loop...

or use a loop:

a(1):=7;a(2):=2;
for n from 3 to 10 do
a(n):=3*a(n-1)+a(n-2);
end do;

## explanation...

I is the imaginary unit. 0.I probably comes from a numerical calculation and the limited precision has lead to a spurious imaginary remainder. The tilde ~ means you have assumptions placed on variable x. You can turn this notation off in tools->options-> assumed variables

## solve/identity...

not perfect, but check out ?solve,identity

solve(identity(20*x^3+10*x^2+4*x+1 = 20*(x-r1)*(a*x^2 + b*x + c), x), [r1,a,b,c]):%[1];

.

Do you see a rearrangement when you type

plot(x, x = 1 .. 5, caption = typeset((a+b+c)/a));

## One Example...

one example with 3 phase sine source ,star connection and inertia element

## As Designed...

according to ?seq:

seq(f, i = m..n)
"If m is greater than n, seq returns the empty sequence (NULL)."

Or you could specify a negative stepsize: seq(-GAMMA(k+1, x), k = 0 .. -2,-1)

## Need more details...

The Modelica Standard Library 3.2.1 is already included in MapleSim. Could you be more specific?

## Contact Library...

MapleSim 2016 has a built in contact library for this purpose. In older versions you probably have to model terrain/car interaction with custom components, using spring/damper deqs.

## new forum...

You could try out the new Maplesoft forum for Maple TA: https://mapletacommunity.com/

The community here on MaplePrimes is really engaged and helpful, but more focused on Maple.

## MapleTAIntegration...

type in a command line ?MapleTAIntegration

You will find topics about the Import into Maple and related tasks

## min...

There is already a component called min, check Signal Blocks->Matematical->Operators, or just type min in the search toolbar. If it has to be a custom component, you probably could use the piecewise command to build a min function

 4 5 6 7 8 9 10 Last Page 6 of 18
﻿