cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Difference between Array

ldante
11-Garnet

Difference between Array

HI,

I just need some help to simplify Hz in a simple mathematical  program.

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:ldante)

Something like this:

Success!
Luc

(Attached is Prime4 file)

View solution in original post

20 REPLIES 20
LucMeekes
23-Emerald III
(To:ldante)

Something like this:

Success!
Luc

(Attached is Prime4 file)

Great .. Thanks

LucMeekes
23-Emerald III
(To:ldante)

You're welcome.

Fred_Kohlhepp
23-Emerald I
(To:ldante)

A bit more easily understood:

Luc's is a more general application, above is less typing!  

Werner_E
25-Diamond I
(To:ldante)

I would vote for using functions to do the jobs. Especially if you need to calculate a difference vector more than once.

Here are two examples - basically reflecting the two different methods shown by Luc an Fred.

ldante
11-Garnet
(To:Werner_E)

I will save this all as my reference . Thank you ..

LucMeekes
23-Emerald III
(To:Werner_E)

In which case I'd vote for:

Is of general use, and also works in Express Prime...

Luc

I don't have Express. . .

Array indexing and range variables are "advanced options" ??

LucMeekes
23-Emerald III
(To:Fred_Kohlhepp)

No,

but programming is,

as are very advanced functions like the Re() and Im() functions (and Bessel functions, statistics, data analysis, curvefitting and smoothing, design of experiments, differential equations, signal- and image processing functions),

plots other than XY-plots,

solve blocks,

symbolics.

Furtunately the complex conjugate operator works, so Re() and Im() are easily defined.

Luc

LucMeekes
23-Emerald III
(To:LucMeekes)

Oh, and not to be forgotten: root() works in Express.

Luc

Werner_E
25-Diamond I
(To:LucMeekes)

and the if-function works, too, in Express! So at least very limited "programming" is possible.

No, those things are not considered "premium".

Luc was referring to my functions which would not work in Express.

Your version with ranges and  indexing will of course work as well in Prime Express.

BTW, you can easily try what Express is like. Just point your licensed version to an invalid licence (any text file or the like will do).

Werner_E
25-Diamond I
(To:LucMeekes)

Good point!

Then I'd vote for

I was surprised that O worked as matrix index 😉

LucMeekes
23-Emerald III
(To:Werner_E)

I'm afraid I can't do the (left arrow) programming assignment in Express.

Luc

Werner_E
25-Diamond I
(To:LucMeekes)

Ahhh ! Think you are right. In fact I did not reset my Prime to Express Mode to give it a try

LucMeekes
23-Emerald III
(To:Werner_E)

?? Can you switch back and forth?

Luc

Werner_E
25-Diamond I
(To:LucMeekes)

Yes, I can switch simply by pointing Prime to an invalid file as license file.

At the moment I am working on a machine with a network flex license so I had additionally plug out the network cable because we set the installation vi environent variable so it looks for one flexlm server after the othe for a license if licensing fails.

When I work on a machine with a local single user license bound to the MAC, its as simple as pointing Prime to an invalid file (a non-existing file will not do) and you have to remember the name and location of the valid license file to be able to switch back, of course 😉

LucMeekes
23-Emerald III
(To:Werner_E)

Aha.

Well anyway, for the time being, and the foreseeable future, I'll not be in that position.

Luc

Werner_E
25-Diamond I
(To:LucMeekes)

You don't miss anything important, I guess.

LucMeekes
23-Emerald III
(To:Werner_E)

As long as I can keep my Mathcad 11 running: not really.

Announcements

Top Tags