Quantcast
Channel: PTC Community: Message List - Shift Register Instead of For loop
Browsing all 25 articles
Browse latest View live

Shift Register Instead of For loop

Hiya, Is it possible that I could use shift registers instead of for loop in mathcad.      Thanks.

View Article



Re: Shift Register Instead of For loop

Mathcad has not the ability to do bit shift operations on integers - there are no explicit data types, anyway.What would be the reason for that kind of operation? If its speeding up calculations or...

View Article

Re: Shift Register Instead of For loop

I want to replace for loop, as it takes alot of time and computation.

View Article

Re: Shift Register Instead of For loop

Anum Ali wrote: I want to replace for loop, as it takes alot of time and computation.I guessed it, but unfortunately shifting in the sense you thinks of is not available in Mathcad.But most of the...

View Article

Image may be NSFW.
Clik here to view.

Re: Shift Register Instead of For loop

Its a simple for loop, I dont know how it could be more simplified. I code is attached below.

View Article


Re: Shift Register Instead of For loop

er...

View Article

Re: Shift Register Instead of For loop

Won't work on a screenshot.But local variable x is obsolete and not used in any case.You don't reveal much of what you intend to do, but it looks like simple copy operations and the second prog...

View Article

Re: Shift Register Instead of For loop

Have a look at these functions, which I think can be adapted to what you want and do work a bit like shift registersBitvecs.xmcd

View Article


Re: Shift Register Instead of For loop

Thanks for your help but you are still using while and for loops.

View Article


Re: Shift Register Instead of For loop

I cant share my mathcad worksheet due to office regulations. Only I want to replace for loop as shown above.

View Article

Re: Shift Register Instead of For loop

I think the only way to do this would be to create user dlls from C or C++, languages that do support shift operations. See Mathcad help on how to do this.  Quite a lot of work, and only worthwhile if...

View Article

Re: Shift Register Instead of For loop

Anum Ali wrote: I cant share my mathcad worksheet due to office regulations. Only I want to replace for loop as shown above.Thats quite often case, but most of the time posters are able to create a...

View Article

Re: Shift Register Instead of For loop

Hello, What operations do you want to do with / after the shift register? If you can give examples of the type of calculation that you neeed there may be ways to achieve your goals.  Regards     Andy

View Article


Re: Shift Register Instead of For loop

A little more on this. If one wants to create something that behaves like a shift register you can build something wher each element copies its neighbor on each clock pulse - but a much more efficient...

View Article

Re: Shift Register Instead of For loop

Its hard to advice as AnumAli only vaguely described HOW he would like to solve his problem (whatever it is), obviously having in mind some programming languages he is familiar with.But what Andy and...

View Article


Re: Shift Register Instead of For loop

er...

View Article

Re: Shift Register Instead of For loop

Won't work on a screenshot.But local variable x is obsolete and not used in any case.You don't reveal much of what you intend to do, but it looks like simple copy operations and the second prog...

View Article


Re: Shift Register Instead of For loop

Have a look at these functions, which I think can be adapted to what you want and do work a bit like shift registersBitvecs.xmcd

View Article

Re: Shift Register Instead of For loop

Thanks for your help but you are still using while and for loops.

View Article

Re: Shift Register Instead of For loop

I cant share my mathcad worksheet due to office regulations. Only I want to replace for loop as shown above.

View Article
Browsing all 25 articles
Browse latest View live




Latest Images