Items tagged with search search Tagged Items Feed

Hey I have a list of matrices and I want to define a proc that will search through the first matrices entries looking for zeroes, and if it finds one to move on to the next matrix in the list and look for zeroes and so on. if for some reason all matrices in the list have zeroes i would like the proc to answer with 0. otherwise I would like it to answer with the ndex of the first matrix wth all non-zero entries. I've played with things and occasionally made things work. But in general I do not have a solution. This is what I'e tried:

Things like this:

recu:=proc(y,n,q)
options trace;
local f,j,t,k;
t[y]:=y:
k:=y:
for f from 1 to n while y<=q do;
for j from 1 to n do;
if evalb(C[k](f,j)=0) then;
t[y+1]:=t[y]+1;
recu(t[y+1],n,q);
else next;
end if;
end do;
end do;
end proc;

like this:

recu:=proc(y,n,q)
local f,j,t,k;
global S;
options trace;
S:=0;
if y=q then return "no";
end if;
for f from 1 to n do;
for j from 1 to n do;
if evalb(C[y](f,j)=0) then;
recu(y+1,n,q);
S:=S+1;
end if;
end do;
end do;
end proc;

And I think I understand well why these are not workinging however I wondered what I can do that will be syntactically (sp?) correct.

Thanks

The search operation on both questions and posts doesn't work. I get the same set of results for both, and the same results regardless of the search term.

When I login and then create a question or post and click submit (or preview), I get a new request to login, and, after I do that login, the originally entered message body has been erased.

i_before_e$.mw

My Homies

I'm trying to find words which contradict the rule "i before e except after c". according to BBC program "QI" there are 923 exceptions, but below i get less than that. i guess its only as good as the dictionary, the 'inbuilt' has only 25k words but 'ospd3' (with 80k words) seems to stop before letter Q (with my sledgehammer code) when there are more words out there like "weird", "veil" and "reciept".

with(StringTools); with(PatternDictionary); bid := Create(ospd3);
words :=([seq])(LowerCase(Get(bid, i)), i = 1 .. Size(bid)-1);
tot := 0;
for n to nops(words) do
C := searchtext(cie, words[n]); E := searchtext(ei, words[n]);
if`and`(C = 0, E = 0) then next else tot := tot+1;
print([tot, words[n]]) end if
end do

Hi,

 

I have a list of sets eg. L:=[{a},{b,c},{d,a,f},{b,d}] and I'm having problems doing operations on it. 

I want to be able to take the first element (a here), look for the next occurrence of it and return what is in the set with it (here d and f).

However I can't seem to use Search or Occurrences as they consider the sets themselves to be the elements. For instance Search(a, L) returns 0. 

 

What can I do?

I'm using Linearalgebra where I have a 10x1 matrix. I want to find the closest element of the matrix to origo, and the furthest away from origo. Can anyone help me to a understandable solution? :)

Hey,

Is there a way of searching a list for two consecutive numbers?

Eg. I have the sequence:

Hi,

I would like to ask, what is the way to use the Direct Search (or other similar package) to solve not a static optimization problem for, say f(x_1,x_2), but the dynamic one, say for f(x_1(t),x_2(t),t)?

I think there must be the way of adapting the algorithm for that.

Any ideas welcome.

Best

Cannot find own answer in

http://www.mapleprimes.com/posts/100884-Precision-And-Plot-Drivers

via searching in my answers. Is it because original message is too old and thats why should be so?

Dear,

How could we know which command to use to do a specific task such as:  "convert boolean value to {1,0}" . I know we could use evalhf() but if we search with keyword "convert true false to 0 1 " in the Maple help then we may not find the right command

Using the Online Help is a solution but I want to know an offline solution since I am not always with the Internet. Did anyone wrote a summary sheet with the content such as : (i.e a list of all commands with keywords for searching)

Hello to all,

 

I have a chunk of letters, numbers and others symbols like in this extract:

.....XRIH*zAv/(z*Bf3)+3*AkQ4xBpTbCYJVq6qCRRUYJy1aBvSjuQXp+zr6kmMEuNR+9*u9zugTalYwXJA*mBhaiM+8*WrkyyflSAs0JssjHLArZ+l5M1sWtcMznmkmu1+NmmSb7dsacr3qJkzQH*dE3yQlI0Ly2RGa1*Yr/ZlvZFCwCiQyVTQ2GflsnOBZTf05W4Ul35uZMHFxhy1tipPyK+iHfus/mJVhEeluq9vtVzEzwbPWav+w11/ii14f78yXqsqH+XU2m....

My goal is to be able to enter that chunk into Maple for character manipulation like searching if, for example, Qxp+zr6km is part of that chunk as is (and if possible his location).  Since there is some "+", I can't define it with chunk :=.  The source is a *.txt file.  Maybe a readdata?

I am quite busy for the moment so is there someone kind enough to help me.

Thanks in advance

Is it possible to search a variable or any word or a command in a long worksheet

Thanks in advance

Hi Experts,

Here is my File. I use the DirectSearch2 Library.

Searching the Minimum works fine. (800 sec on i7 PC)

But the Datafit runs endless.

I tried to make the fit with min SSE that works, but why does DataFit not succeed?

 

Thanks for answering.

Walter

GroundWater_Solution.mw

I want to search maple files for specific texts within the file.  What software will do this?

I recall some mention before about searching for specific texts in maple documents but I cannot find it. 

If I search for something in mapleprimes then click on one of the selections, mapleprimes brings me to a page of many posts and does not bring me to the proper single post I expect to see.  In fact the post or question I selected does not even exist in the next page mapleprimes sends me to.

I don't seem to be able to get Help to respond to searches with more than one keyword...for example, I entered "date format" and received "No Matches Found."

1 2 Page 1 of 2