## Float(undefined) while doing numeric integration w...

Dear Sir/Madam, I am new in maple and willing to use an old (yet tested) Maple V code. The program first evaluates two integrals numerically, which depend on the values of "d" and "s" (user-defined), and then computes the values of a cumulative distribution function. The problem is that, when running the code on Maple 2018, the evalf(Int) of the first integrand (named "ex1") results in "Float (undefined)". I would really appreciate your help. Thank you in advance.

#Maple V program

assume(x, real, y, real, c1, real, c2, real);
d := 3:
s := .9:
ex1:=(1-exp(-(d-y)*I*x))/I/x*exp(y*I*x/(1-I*x)):
ex1:=simplify(Re(evalc(ex1))):
f1:= unapply(ex1,x,y):
ex2:=(1-exp(-(d-y)*I*x))/I/x*exp(y*I*x/(1-I*x))/(1-I*x):
ex2:=simplify(Re(evalc(ex2))):
f2:=unapply(ex2,x,y):
t1:=evalf(Int(f1(x,s),x=-infinity..infinity));
t2:=evalf(Int(f2(x,s),x=-infinity..infinity));
cumulativeprob:=evalf(subs(c1=1/2,c2=1/2,1-((c1*t1+c2*t2)/(2*Pi)+c1*exp(-s)/2)));

cumulativeprob:=.2503779941

## StringTools Split command...

I get the same result here where I expected a difference to be acknowledged by the split command. Is there a more efficient way of handling this problem other than the substitution for another character, followed by executing the split  command, then substituting the substituted character with the original ?(here ":")

 >
 (1)
 >
 (2)
 >

## The Format Styles character does not wwork in my 2...

How can I set Maple 2019 so that all inputs are of the color red?

I am using a Lenovo Notebook 64-bit.

Thank you, Jan Drösler

## How do I plot moment curve?...

Plot the "moment curve" f(t)=(t,t^2,t^3) over the interval 1≤t≤2 and a tangent line at the point when t=1. Include both plots in the same display, with the moment curve red and the tangent line blue.

## How do I plot boundaries of the rectangle in Mapl...

Plot the boundary of the rectangle with bounds 1≤x≤4 and 2≤y≤3 by parametrizing and plotting all four boundary segments in the same display

## How do I simplify KdV equation in Maple by using t...

How do I simplify KdV equation in Maple by using =fxt))xx)?)

 >

I am by using =2*difffxtxx)
My aim is to get the form

 >
 >
 >
 >
 >
 (1)
 >
 (2)
 >
 (3)
 >
 (4)
 >
 (5)
 >
 >
 >
 >

## Is there lifting function for a algebra use?...

Is there lifting function for polynomials or algebra use?

expect input a list univariate polynomial , then output a list of polynomials of two variables.

it should be the reverse operation of projection.

Which library has this function in maple 12 or maple 2015?

## User's Guide example, Simple Hydraulic System Net...

I am a beginner of MapleSim. I study the MapleSim User Guide. I follow the Tutor 8:Modeling Hydraulic System. But the following issue occurs, as shown in the picture. I bet I follow the guide carefully.

Also, I find that if I open the User's Guide example,Chapter 6, Analysis of Simple Hydraulic System Network, which is the standard example,I simulate it and it works well. But if I delete the probe, and attach a probe at the same place , selecting same values to measure, and simulate again, it failed, giving the same error description. I need your help,please.

problem_with_Analysis_of_Simple_Hydraulic_Network.msim

## Changing the coordinate system in the Physics pack...

I am trying to write a metric in Maple 2019, using the Physics package in Cartesian coordinates. I know that there is already a pre-installed way in which to set the coordinates to Cartesian, namely, if we have something like

Setup(coordinates=cartesian);

or similarly, using the Coordiantes calling sequence, such that we may define something like

Coordinates(A=cartesian);Setup(coordinates=A);

yet, if I am not mistaken, this gives the coordinates in the following form: {x,y,z,t}, yet I seek to define the metric in the following, perhaps more arbitrary coordinate system, {x1,x2,x3,t}. Is there any way to setup the coordinate system to read like the set I just described, such that I can then take a norm of these three spatial coordaintes to be |x|? Any help would be greatly appreciated.

## Is style = planar option of DrawGraph failure whe...

It would seem that the option style = planar  of DrawGraph()    is  failure when some graphs are planar.
For example:

treeof5:=[NonIsomorphicGraphs(5,4,output= graphs,outputform=graph,restrictto = connected )]:

We know tree is planar graph obviously. But when I add the option style = planar ,  drawing of the first tree of list displays an error :
Error, (in GraphTheory:-Graph) vertex 1 cannot be its own neighbour in list of neighbours

I did not find any reason to explain.

## Solving a Quadratic Diophantine Equation with 3 va...

How do I find integer solutions to this non-linear equation:

8= 7(x^2+y^2+z^2)+2x+4y-8z.

Tried isolve and it wasn't working. (I guess too many variables?)

Also, if f(x,y,z) is the RHS, how do I write a loop that finds integer solutions to f(x,y,z)=c for |x|,|y|,|z|< N, say?

## Direction field using Maple...

Suppose that a given population can be divided into two parts, those who have a given disease and can infect others, and those who do not have it but susceptible. Assume that y the proportion of infectious individuals then the rate of spread dy/dt is proportional to the number of contacts and can be described as

=y(-y), y(0)=y0

Where y > 0 is a function of t,  is the initial proportion of infectious individuals.

1. Use MAPLE and sketch a direction field for your differential equation and include a sufficient number of solution curves and include the graph into your answer sheet.

(3 marks)

1. Find all the equilibrium solutions and determine whether they are asymptotically stable or unstable.

(4 marks)

1. Solve the above initial value problem and verify that the conclusions you reached in part(ii) are correct.

(5 marks)

## How do I make a for loop over several paragraphs?...

Everytime I try to run my for loops, all the code I wish to be iterated over has to be on the same line/paragraph as the original for statement. I also have to end the for loop on the same line/paragraph otherwise maple returns an error saying my for loop is unterminated?

Is there some tool I should be using to format my code that I'm not aware of?

## How do I sum all the values in an arrays in Maple ...

My array is as such

A:=Array(1..N/2);

(Array A is then filled with values)

sum(A);

Then Maple outputs all the values of the Array and not the sum of them all? What am I doing wrong? Any help is appreciated.

## how to generalize this inserting values method int...

sourcesamples := [evalf(-1-sqrt(7)), -2, 1, evalf(-1 + sqrt(7)), 2];
templatesamples := [A, evalf(-1-sqrt(7)), A, -2, A, 1, A, evalf(-1 + sqrt(7)), A, 2, A];
samples := [-4, evalf(-1-sqrt(7)), -3, -2, 0, 1, evalf(3/2), evalf(-1 + sqrt(7)), evalf(9/5), 2, 3]

want to insert value alternatively according to the template and neighbor values

Some inserted values come from

floor(evalf(-1-sqrt(7)))
ceil(evalf(-1-sqrt(7)))

(round(evalf(-1+sqrt(7)),0) + 1)/2;
(2 + 1)/2
=evalf(3/2)

(round(evalf(-1+sqrt(7)),1) + 2)/2;
(1.6 + 2)/2
=evalf(9/5);

how to generalize this method into general case function instead of manual inesrt?

 First 376 377 378 379 380 381 382 Last Page 378 of 2211
﻿