killercatfish

340 Reputation

4 Badges

15 years, 14 days

MaplePrimes Activity


These are replies submitted by killercatfish

ok... so I have this

 

f := proc (m, n)

local a; a := m+n;

if a::integer then a

else FAIL

end if

end proc

 

I tried to make a have to be an unsigned integer and it did not like that, any ideas?

 

THanks a ton!

ok... so I have this

 

f := proc (m, n)

local a; a := m+n;

if a::integer then a

else FAIL

end if

end proc

 

I tried to make a have to be an unsigned integer and it did not like that, any ideas?

 

THanks a ton!

I mean what I am really looking for is something simple like

f:RxR->N   

(m,n)->n+m

 

So in this case the codomain matters, and I dont want the function to evaluate at anything but the Naturals.. therefor I would get  a graph with points and such.

I mean what I am really looking for is something simple like

f:RxR->N   

(m,n)->n+m

 

So in this case the codomain matters, and I dont want the function to evaluate at anything but the Naturals.. therefor I would get  a graph with points and such.

Awesome! thanks for the (as always) quick responses. This is one of the best online communities Ive every been a part of. Cant wait to know enough to help others!
Here is the general idea of what im having issues with, I am trying to create the display function and having trouble adding the necessary comma: for a while a <= 11 do LEDPlots[a] := plot(LEDs[a, 2], x = 280 .. 900); DisplayLEDs := cat(DisplayLEDs, Comma, LEDPlots[a]) end do #Comma is defined as Comma:=","; Clearly something is wrong with that. #All the individual plots work fine, but the Final Constructed DisplayLEDs is: DisplayLEDs:=||||||||||||||||||||`DisplayLEDs,`||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`))||","||(PLOT(`...`)) Any idea where all the || came from? i know above he said cat makes a string... but when i try to make this any other way i get errors.
plotint := cat(0, " ", "≤", " ", "x ", "and", " ", "x", " ", "≤", " ", 20); 0 ≤ x and x ≤ 20 #prints what I want.. f := proc (x) options operator, arrow; piecewise(plotint, functions[1], 20 < x and x v= 100, functions[2], 100 < x and x <= 120, functions[3]) end proc; x -< piecewise(plotint, functions[1], 20 < x and x <= 100, functions[2], #compiles the function... 100 < x and x <= 120, functions[3]) > temp := plot(f(x), x = -10 .. 130, discont = true); Error, (in PiecewiseTools:-Is) Wrong kind of parameters in piecewise then i get that error!
Hey thanks for all the help. Im chuggin along, but my question is now how to concatinate a space? I have my functions and I want to write a simple loops to build the intervals (taking them from the matrices that I have, its not a problem) my issue is this, how do I successfully write a concatenation for: 0 <= x and x <= 20 So i will get the 0 and 20 from a cell in specific matrices, and the rest of guts are spaces and then x's and the and... ive tried all sorts of things, but am having trouble.. so essentially i will run a loop and have an array filled with intervals for each of my sections of functions.. I hope this is clear! Thanks again guys!
Hey guys, thanks for the help. it worked fine with the space. I am not sure what you mean when talking about the 1-d and 2-d worksheets, id love to know more (if there is a place to point me to I will read that unless someone wants to explain!) here is my question now: the array I have is filled with 12 functions which I wish to graph, it is a combination of implicit and explicit. I also need each to be displayed only on a particular interval. I have had some trouble with the implicit plotting, any direction here (I am enjoying figuring all this out on my own, though I figure I will look for some guidance should it be out there!) Thanks again! (I did not post the function since I do not want to come back and find my fun done for me!)
Page 1 of 1