Items tagged with integer integer Tagged Items Feed



This is my program below. When I try to get an output, nothing happens, please help!



> restart:



> with(plots):











I am trying to plot four different DEs on one graph, but Maple does not like the fact that I have several constants that are not assigned to numerical values.  Here is my code:


I would like to pass a string array to an external FORTRAN function, can this be done without generating wrapper code...I don't have a FORTRAN compiler...

The Fortran datatype is

  character*255 hf(20)

In FORTRAN I would pass say "hf(1)='nitrogen.fld'", but I'm not sure what datatype to use in the maple define_external function or how to pass the data in?


I'm trying to approximate an integer by using Simpson's rule but I can't find anything on how to input the coding so that it uses a specificed number of intervals, the default is 10 and I need it to be 5 can anyone tell me how to put that in??

Hi there,

I want to solve several LPs of the kind

L:=Optimization[LPSolve](obj, cnsts, maximize = true, assume = integer);

where it often is unbounded. Maple then prints a warning and returns a (meaningless) solution.

Now: how do I check, whether it is unbounded?



I've run into a problem with Maple. When I solve a trigonometric equation, for instance sin(x)=0, it responds with only one solution, even though there are countless. So what I mean is, when I type: solve(sin(x)=0,x) -> x=0 x = 0 is of course correct, but I would really like it to give the general form of the solution for such an equation. My TI CAS calculator responds with this general solution set: x=c*3*pi , where c is a random integer, Z, (any whole number). Is there any way to make Maple give such a respond as well?

Hi all.

Ok, I'm trying to save to a file a set of a complex number, a float number and an integer. According to Maple Help this can be done with:

writedata[append]('terminal',[-0.123456-0.123456*I, 0.1334423423*10^(-15),3], float, proc(f,x) fprintf(f,`%a`,x) end proc);

And it works (the numbers are just an example of what I'm trying to do).

The problem is that I want to change the precision of the second number (or to all of them) to say 5 digits. But when I try as the help suggests:

I need to formally partial-differentiate a given arbitrary function G(z,w) with respect to two other variables z=z(s,t) w=w(s,t) and then to express the p-th-total-order partial derivatives of z with respect to s and t as a polynomial in the partial derivatives of G with respect to z and w and the partial derivatives of w with respect to s and t, divided by the partial derivative of G with respect to z raised to the power 2p+1.   The eliminate function allows me to eliminate all partial derivatives of z w.r.t. s and t of total order lower than p.


I'm try to access some external Fortran routines within maple. I have a Fortran datatype of

  character*255 hf(20)

This is an input parameter, and I believe this will map into a maple Array object, but I'm not sure of the datatype. The help says that the datatype can only be "hardware datatypes" so I take to mean it would have to be of type integer[4]...when I do this I get the error below.


I'm trying to use maple on a Dell with intel video chipset series 4, on a Fedora 11, and I get corrupted 3d graphics. I read this FAQ

(point 3) but it seems that no solutions exist.

I'm using the intel driver, this is the sheet of xorg.conf


Does Maple have a command for return true or false when querying set membership of an element?

I have sets of random integers, Stuff[k], indexed by k, for example


I need to be able to test if

7 is a member of Stuff[9]: // I should get false

5 is a member of Stuff[9]: // I should get true

There is no such set membership function listed in the Help menu.

I finally figured out a for loop for sequentially removing one set from another (set-theoretic subtraction).

First of all: I'm so sorry, I posted my question to a wrong place ( into the poll).

So I copy here the question and the answer of jakubi and my reply to jakubi.


I would like to solve the following system

x*(2*sin(x)*y^2+x^3*cos(x)+x*cos(x)*y^2) = y*(2*sin(y)*x^2+y*cos(y)*x^2+y^3*cos(y)),

-x*sin(x) = y*sin(y);

Until I have founded only the solutions

x = k*Pi,  y = +/- k*Pi;    k is any integer.

jakubi's answer:

more solutions


I'm having a bit of difficulty with the function "eval" I would like it to perform a full evaluation of an expression, but it does not appear to be doing this. When I try to explicitly pass it a value for the evaluation level it doesn't appear to take the integer input, the only way I can get it to work is to nest calls to eval ...[ie eval(eval(exp))]. Below is the code giving me the problem, the problem occurs on the last line...any suggestions would be appreciated

Thank you.


View on MapleNet or Download
View file details


what i want is a procedure to do the following:

given an integer input, add the digits together. if the no. of digits resulting is >1 repeat until a single digit remains.

I am trying to write a program that contains multiple subroutine calls. I understand the placement of the single for-do loop to call the "lowest value" subroutine.

Here is program.

4 5 6 7 8 9 10 Last Page 6 of 22