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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

4-Participant

## How to use Kronecker Delta?

I want to create a matrix using a little program with Kronecker Delta (1 if i=j, 0 if not) however it does not work.

Where is the mistake?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald III
(To:MarianoC)

Kronecker delta is a function in Mathcad/Prime, so it needs to be called with parameters 'delta(i,j)'  rather than with indices 'delta[i,j'.

I can't open your sheet (unrar produces an error message), but I should guess that Prime's error message is that delta is undefined...?

Success!

Luc

12 REPLIES 12
21-Topaz I
(To:MarianoC)

Hi,

You do not need to increase "j" it happens automatically,

You have return statement for D in the first for loop not outside it.

4-Participant
(To:terryhendicott)

Ok, but the Kronecker delta is well used?

Look:

21-Topaz I
(To:MarianoC)

Hi,

The return of D needs to be outside of the for loops

You can use identity matrix for Kronecker Delta

You may have to zip it first. A serious bug in this forum often prevents from attaching a mathcad file. In Windows Explorer click with the right-mouse button on the mathcad file and select 'Send to' -> 'Compressed (zipped) folder'. The resulting .zip file can be attached

4-Participant
(To:terryhendicott)

Well, I will use the identity matrix as a substitute for the Kronecker Delta.

Thanks

21-Topaz I
(To:MarianoC)

Hi,

Stress has units of MPa.  D is dimensionless.  Cheers

21-Topaz I
(To:MarianoC)

Hi,

Stress you have defined looks like it needs units of MPa,

This will make D dimensionless.

23-Emerald III
(To:MarianoC)

Kronecker delta is a function in Mathcad/Prime, so it needs to be called with parameters 'delta(i,j)'  rather than with indices 'delta[i,j'.

I can't open your sheet (unrar produces an error message), but I should guess that Prime's error message is that delta is undefined...?

Success!

Luc

24-Ruby V
(To:MarianoC)

Just to summarize what Luc and Terry already have written:

21-Topaz I
(To:Werner_E)

Hi,

You do not need to program it, just use matrix manipulation will do in one step

4-Participant
(To:terryhendicott)

Could you convert it to Prime 3.0 or lower?

Thanks!

21-Topaz I
(To:MarianoC)

Hi,

You cannot use Prime 4.0 to save back to Prime 3.0.

Have enclosed a JPEG snapshot of screen.

23-Emerald III
(To:terryhendicott)
If you have both applications open on the same PC , you can copy equations from a sheet opened in prime 4 an paste them to a sheet opened in prime 3.1. Don't know if this works for versions below 3.1.

Success!
Luc
Announcements
Top Tags