## 571 Reputation

16 years, 57 days
Technical professional in industry or government
Budapest, Hungary

Maple

Hello,

## Sample number cannot be in 1E6 form...

Maple

It seems that Sample  works with only posints as the number of samples (Maple 12):

restart;
with(Statistics);

X:=RandomVariable(Uniform(-1,1));

xs:=Sample(X,1E6);

# it gives an error

xs:=Sample(X,1000000); # it is ok.

## Help example of evalm doesn' t work for ...

Maple

Hello,

I am trying this evalm example (from the help page of evalm, Maple 12):

restart;

alias(Id = `&*`());

# Simplification of matrix operations

evalm((`&*`(`&*`(A, B), 2))*B-`&*`(B, Id));

Error, (in evalm/amperstar) &* is reserved for matrix multiplication

A and B are not defined as Matrix in the help page. Is it the problem?

## Problem with pointplot with multiple col...

Maple

Hello,

I have 4 points in 2D and I want to plot them with different colors:

This works in Maple 12:

plots[pointplot]([1,2,3,4],[5,4,7,8],color=["Red","Blue","Magenta","Pink"]);

And I want to connect each other with line segments:

But this doesn't work:

plots[pointplot]([1,2,3,4],[5,4,7,8],color=["Red","Blue","Magenta","Pink"],connect=true);

Error, (in plots/pointplot) number of colors must match number of points

## Example in Help doesn't work...

Maple

I wanted to try this example of Maple's help, but it gives an error message:

restart;

with(algcurves);

f := y^2-x*(x^2-1);

plot_real_curve(f, x, y, showArrows = true);

Error, (in algcurves/CurvePlot:-PlotRealCurve) too many levels of recursion

 2 3 4 5 6 7 8 Page 4 of 8
﻿