Items tagged with options options Tagged Items Feed

I do not think the current API for dsolve when asking for series solution is done right. If one wants to obtain a series solution for an ODE, but wants different order than the default 6, now one must set this value using a global setting before making the call, like this:

eq:=diff(y(x),x$2)+y(x)=0;
Order:=10;
dsolve({eq,y(0)=1,D(y)(0)=0},y(x),type='series');

It would be better if options to calls are passed along with the other parameters in the call itself. Something like

dsolve({eq,y(0)=1,D(y)(0)=0},y(x),type='series',order=10);

This should also apply to any command that takes Order, such as series(cos(x),x=0,order=10);

Passing options and values to functions using global and environment variables is not safe and not a good way to go about it as it can cause programming errors.

In this document, I think that is the relevent section. But I couldnt understand it.

 

I want something like this

>plot(sin(x),color=yellow);

>plot(sin(x),color=organe);

>plot(sin(x),color=red);

>plot(sin(x),color=green);

>plot(sin(x),color=ABC); # error

>plot(sin(x),color=CBA);# error

optional, but works fine within a given sets of choices.

 

How do I write a procedure like that?

 

Thanks!

Every time I try to solve for a variable it gives me an arrow.

ex solve(5.6*10^-4=((x)(x))/(0.2-x),x)

gives me

x -> 7/62500 - 7/12500 x

How do I get it to stop giving me the x -> ?

Or at least reset some options so I don't have to reinstall the whole thing?

good say !

I want for my work to calculate the International Equation of State of Seawater

but when i enter my fonction in mapple: it is like mapple don't recognise the second variable s:

>t:= -> t;
s:= -> s;



> g :=(t, s)-> 999,842594+6,793952*10^(-2)*t-9, 95290*10^(-3)*t^2+1, 1685*10^(-4)*t^3-1, 120083*10^(-6...

I tried this, but it doesn't seem to like having the x's and y's in the z range. 

 implicitplot3d(x = 6, x = 1 .. 7, y = 2 .. 5, z = 0 .. (1/4)*(x-4)^2+(1/5)*(y-3)^2+10
  , view = [0 .. 8, 0 .. 8, 0 .. 20], transparency = .5, style = hidden);
%;
Error, (in plots/iplot3d/implicit3d) bad range arguments x = 1 .. 7, y = 2 .. 5, z = 0 .. (1/4)*(x-4)^2+(1/5)*(y-3)^2+10

I'm trying to plot a surface above the xy plane that looks like a solid,...

Hi,

I am missing two options in the "fieldplot3d" command, which I am using in cylindrical coordinates: one is "style=contour" and the other is "axes=cylindrical" where apparently only the "axes=boxed" option as available.
Any ideas how I can get this?

Or can I show a polar plane at one end of the cylinder? like in the post:
http://www.mapleprimes.com/questions/38553-Plot-3D-Cylindrical-Coordinates


this is my plot:

with(plots):with(VectorCalculus):

I'm trying to plot phase analysis for the Friedmann's equation, however when running the protocol and trying to plot these phase analysis, it comes up with error that rho wasn't allowed in the set of options!

Here's the code i'm having difficulty with!?!

> SFsys := proc (lambda, W, ics, T, v, u) local sys, flatF, rho0line, plot0, plotDSp, plotDSm, plotE, flatF_Plot, IC, df1, df2; 
sys := eval(DSys, {Lambda = lambda, gamma = W}); 

Hi guys,

I've a simple question, can I run a maple mpl file with options? I mean, instad of

maple file.mpl &

doing

maple file.mpl --option1 value 1 --option2 value2 etc &

If yes, how do I instruct the code about what to do with those options, eg assign them to variable?

 

Thanks

salvatore

just a comment in passing, for the record,

it appears that the numpoints plot option can be used this way:

numpoints=round(1e+4)

but not in the simpler form:

numpoints=1e+4

that's because 1e+4 is "1000." with a dot while round(1e+4) is "1000" with no dot.

There probably are good reasons why 1e+4 is not treated as a natural number, but I haven't investigated them.

Page 1 of 1