Items tagged with range range Tagged Items Feed

I have been trying to fit a function to experimental data. To do this i was using


The data is of the type


When I use initialvalues, I get a result, that fits the data well, but is clearly not the desired minimum. Maple delivers g always bigger than 10000 which is nowhere near -7, where it has to be for physical reasons. When using parameterranges I get the error

Warning, no iterations performed as initial point satisfies first-order conditions.

He stopps computing and simply prints out my initialvalues or the first value that is in the parameterrange with a huge RSS.

How can I use initialvalues and parameterranges together for my data?

In a 3d coordinate system I have a circular spacecurve with z-minimum -4 and z-maximum +4. In the same 3d coordinate system I have a 3d surface plot with z-minimum -0.5 and z-maximum +1.3 . When I choose the color option "Z(Hue)" in order to color-code the z-values on the 3d surface and make the topography more clear, I mostly get a totally green 3d surface. It seems that the color scaling is coupled with the spacecurve with z-values of +-4 . How can I uncouple the color scaling from the spacecurve and couple it with the z-range of the surface, while the color-limits shall be at +-1.3 ?

I've got a piece-wise function(for which I've made the procedure) f defined over x<=-1, -1<x<1 and x>=1 which I am trying to plot over the range of (-2,2). I've tried using plot(f,-2..2) but it doesn't show any curve. Should I add a few more parameters to plot()?

int(int(y, 0 <= y, x^2+y^2+z^2 <= 1));

Error, (in int) integration range or variable must be specified in the second argument, got 0 <= y

int(int(y, y = 0, x^2+y^2+z^2 = 1));

Error, (in int) integration range or variable must be specified in the second argument, got y = 0



I have a function, lets say g(x,y,...), that depends on many other functions. But I don´t want the results that are inside certain intervals, and I need to receive the results of those functions as something like NULL when asking for a result that is inside any of those intervals. That way, g(x,y,...) would also have to result in something like NULL if any of the lesser functions are NULL fora any given values.


I tryied using the piecewise command, and for the intervals that I wanted, it worked, but for those I wanted to be NULL, they were understood as 0, and so G(x,y,..) continued to exist but with a very different value.


To clarify what I need, I will try an exemple:


Imagine I have the function f(x)=x


I want to disconsider the results for x<2 and x>6, in a way that if I try the command 'f(1)', I will receive something like NULL and know that it is outside the range.


In the same way, I need the plot of this function f(X) to show the function only from 2 to 6, but not existing for the delimited intervals.


Ad if I continue and make g(x)=f(x)+10 , I don´t want g(x) to exist if f(x) doesn´t exist, and same for the g(x) plot, which shouldn´t be shown in the intervals where f(x) don´t exist.



Thank you very much for your atention!



I have a plot of a sinusoidal function(cos_phi) which changes with incrementing values of variable k. When this function goes above 1 or below -1 I would like to have the range of k for which it occurs outputed somehow. Would anybody know how to do this?


I want to calculate a range.

eg. j=1...n-1 will use this equation


j=n will use other equation.

How to create the command? I keep receive errors.


Thank you.





Im a regular student and Math is a really difficult topic for me, and every once in a while i run into a problen that i am unable to solve. This time i would like to ask this commmunity for some help. Many thanks in advance.

The function itself is: y = sqrt((x^2-5*x+6)/log[10]((x+10)^2))

I was able to determine the domain (X), but i am having very big trouble with finding the range (Y). Also i should be able to do it with pen on paper, but so far i have wasted 2 days and many papers on pointless scribblig.

Could anyone please explain how could i find the range of that function and provide a step by step solution? 

Maple is saying 'Error, Vector index out of range'. Can you see how maple executes all steps, so I can see where exactly the problem is?


     I'm using fsolve in a loop, as an example can we find the first 10 roots of sin(x) and store then in an array.




for i from 1 to 10 do

x[i]:= fsolve(sin(y)=0, y=x[i-1]..10 , avoid={y=x[i-1]});

end do;
Firstly this solve only 0,2*Pi, 3*Pi...Why does it skip Pi? also can I change the range to x[i-1]..infinity? 

I have found very little help about the Generate command of the RandomTools package.

I also have minor gripes about the syntax. And what better way to deal with these than to voice them?

This is how I was able to generate random lists and random Matrices.

A list of 10 random integers between 1 and 100:

L := RandomTools:-Generate(list(integer(range=1..100),10));

      L := [47, 8, 46, 44, 9, 77, 59, 16, 1, 70]


Hello All ,

I have attached my workseet for reference.

I find it strange that the solutions calculated in optimization shows a value "X" but when i try a value greater than "X" , there is still a solution available which is very irregular.Since the optimization finds the value beyond which the solution for a6 is zero/negative.

I am not sure what is causing this problem or is it just the problem with the optimization.


I've got a list of inequalities

[x > 5, 10 < x]

and I need to plot the region by

plots[inequal]( [x > 5, 10 < x], x = 4 .. 11, y = 0 .. 1);

but I don't want to specify x-range.

So how can I get the numbers from inequalities and generate something like "x = 5-1 .. 10+1"?


Thx :)

I have an assignment that I am suppose to be doing in maple, I am suppose to plot the function f(x)=e^(x/3)sin(2x) for abs(x)<=2.... for part of it...

Ive tried multiple things in maple such as plot(exp((1/3)*x)*sin(2*x), abs(x) <= 2) but it keeps throwing me an error, any insight on how to get tis graph plotted would be great.

1 2 Page 1 of 2