## Area under a curve...

I would like to know how do I find the area under a curve. The curve is 2 D and the data to plot the curve is available. Thanks you

## How can you plot functions defined by parts?

by: Maple

I have only one question, how could I plot the following function correctly?

> f:=x->piecewise(x<-1,1,x=0,2,1);

I try this command but I do not reach the correct result.

> plot(f,-3..3, style=point,discont=true,numpoints=100);

## ^ (caret) problem with maple & mac...

hello! i have a problem that drives me crazy the last days. i'm a switcher from windows to mac and i can't live without maple. but when i want to superscript for example x^2 in maple it shows me x ^ 2, so i can't solve a function that easily, because the superscript isn't accepted. but when i copy the caret out of an predesigned example it works fine. do you can tell me how i have to set my preferences that it works as easy as it does on windows? i hope you understand my problem and i hope that you can excuse my bad english! with kind regards, max pfister

## Sparse Transpose

by: Maple

This is a quick programming exercise to correct the following problem in Maple:

```for n from 8 to 12 do
A := Matrix(2^n, 2^n, storage='sparse'):  # zero matrix
print( 2^n, time(LinearAlgebra:-Transpose(A)) );
end do:
```

The problem is that the LinearAlgebra:-Transpose command is not sparse. That is, the time it takes is proportional to the overall size of the matrix and not to the number of non-zero entries - even when your matrix uses sparse storage. In this post we will look at what is required to program a new Transpose command which can handle much larger matrices.

## trouble with matrix...

I need to find the trace of a matrix A. What is the command for that? I can't find it in maple's help. (I'm using Maple10 if that changes the answer) Thank you!

Rich

## real roots...

I am using the solve command in a proc to solve some simple equations. Is there an easy way of determining if the solution is an imaginary number? (basically I only want real solutions... sometimes the solutions will be in the form of a=b+1, i.e. in terms of another variable, and sometimes it will just be some number... once getting the solutions using something like ans:=solve(eqn,{vars}), how can I determine what type it is? JM

## Trigonometry with Maple

by: Maple
Trying to use Maple to perform some trigonometric transformations, I found a good introduction to Maple: MCS 320: Introduction to Symbolic Computation of the Department of Mathematics, Statistics, and Computer Science @ the University of Illinois at Chicago. It have some lines about the Maple function, which give that kind of informations:
```>> trigsub(cos(2*x));
[cos(2*x), cos(-2*x), 2*cos(x)^2-1, 1-2*sin(x)^2, cos(x)^2-sin(x)^2, 1/sec(2*x), 1/sec(-2*x),
(1-tan(x)^2)/(1+tan(x)^2), 1/2*exp(2*i*x)+1/2*exp(-2*i*x)]
```

## background curve...

How do i find a background curve to a graph, i have data fitted with a spline and i need to find the background curve

## Maple 10: How do I get Maple to change what it dis...

For example, I type in standard F=ma 5 kg * 1 m/ s^2 Maple 10 spits this back after the = as 5kg*m/s^2 rather than the more common 5 kg*m/s^2 with the divisor sign half way down the 5. And what I really want is to be able to ask for any compatible units, in this case, N for Newtons, and have N replace kg*m/s^2. I notice that there is a new [[]] format for units. When I use them, they appear in my document, not all what I'd expect. Thanks much, Rich

## Maple 10: How do I change number formats?...

I'd like to have the ability to change, say, 12345.678 to Engineering 12.345E+03 12.345x10^3 Scientific 1.234E+04 1.23456x10^4 General/decimal 12345.6 fraction of varying size Are these possible? I have tried with no success... Thanks, Rich

## Maple Primes File Manager...

I haven't been to mapleprimes for awhile and noticed that the "convert worksheet" option is no longer available. Are the "file manager" and "upload file" options very different from the previous worksheet converter, and are they also any more difficult ?