What causes this error?

What causes this error? - Сообщения

#1 Опубликовано: 18.04.2021 04:53:04
Tuan Nguyen

Tuan Nguyen

0 сообщений из 16 понравились пользователям.

Группа: User

not defined error

Any idea why I don't have any issue with the case below but get "x-not defined" error for the case above.

Thank you.
#2 Опубликовано: 18.04.2021 07:10:14
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

In the first case probably you might have a 0 at the denominator, try using the 4-arguments version of solve and set something slighty different from 0 in the solve boundaries.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 18.04.2021 09:27:42
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Any idea why I don't have any issue with the case below but get "x-not defined" error for the case above.


Observe the solve bloc how to escape x not defined

Page45.sm (26 КиБ) скачан 37 раз(а).

#4 Опубликовано: 18.04.2021 13:24:11
Tuan Nguyen

Tuan Nguyen

0 сообщений из 16 понравились пользователям.

Группа: User

Wrote

Wrote

Any idea why I don't have any issue with the case below but get "x-not defined" error for the case above.


Observe the solve bloc how to escape x not defined

Page45.sm (26 КиБ) скачан 37 раз(а).



Thanks, Jean. This is a great help. However, I am still scratching my head to make the below function work.

f.c (x,y) is the compression stress at a point in an I-shaped concrete section using stress-strain curve for concrete by Popovics. I simplified it at given maximum strain.

x is the distance from the point to extreme compressive fiber
y is the distance from the neutral axis to extreme compressive fiber
maximum strain at the extreme compressive fiber is given.

Why can't I make g(y) work? Is this possible for smath to solve the equation g(y)- whatever = 0 (say sum of compression force in steel & concrete - tension force in steel - Axial force = 0)?


To make it a bit more complicated, if the maximum strain is unknown (say epsilon_c). And the section is under Axial P and Moment M. Can we solve the equations:
SUM of Axial = 0
SUM of Moment = 0

I'll create a real problem and post later but if you can take a look at the attached smath file and help me to solve the issue, it'd be much appreciated.Page45.sm (26 КиБ) скачан 20 раз(а).
#5 Опубликовано: 18.04.2021 14:59:01
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: Moderator

f.c(x;y) don't need length unit so I have removed units of y in integrals from g(y). ((y-x)/y is unitless)
It was all inches in integral so removed by dividing ft to in. Function worked.
Long word short, perhaps removing units temporarily is the key for your function.

Regards

Worksheet1.sm (7 КиБ) скачан 25 раз(а).

2021-04-18_20-57.png
#6 Опубликовано: 18.04.2021 16:14:47
Tuan Nguyen

Tuan Nguyen

0 сообщений из 16 понравились пользователям.

Группа: User

Wrote

f.c(x;y) don't need length unit so I have removed units of y in integrals from g(y). ((y-x)/y is unitless)
It was all inches in integral so removed by dividing ft to in. Function worked.
Long word short, perhaps removing units temporarily is the key for your function.

Regards

Worksheet1.sm (7 КиБ) скачан 25 раз(а).

2021-04-18_20-57.png



Thank you very much. I copied and pasted your revised formula into my sheet and it worked like a charm. But when I edited it to match, it didn't work. I must have done something stupid somewhere.


Page45.sm (9 КиБ) скачан 27 раз(а).
#7 Опубликовано: 18.04.2021 16:26:52
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

...
Thank you very much. I copied and pasted your revised formula into my sheet and it worked like a charm. But when I edited it to match, it didn't work. I must have done something stupid somewhere.



Hi. Implicit parenthesis is a source of a lot of errors. And SMath isn't the only one that have this problem. Wolfram Mathematica, in traditional form have it too. But you can copy the expressions in SMath and paste it as text to see what happen:

g(y.1):78*'ft*int(f.c(x,y.1/'in),x,x.0/'in,y.0/'in)+92.25*'in*int(f.c(x,y.1/'in),x,x.1/'in,y.1/'in)

g(y.1):78*'ft*int(f.c(x,y.1/'in),x+92.25*'in*int(f.c(x,y.1/'in),x,x.1/'in,y.1/'in),x.0/'in,y.0/'in)

Also can show it:

Clipboard02.jpg

This is: your differential it's wrong.

Best regards.
Alvaro.
#8 Опубликовано: 18.04.2021 16:32:57
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

The first solve issue was solved.
Next, maybe show something to illustrate the project ...

View.PNG
#9 Опубликовано: 18.04.2021 16:38:17
Tuan Nguyen

Tuan Nguyen

0 сообщений из 16 понравились пользователям.

Группа: User

Wrote

Wrote

...
Thank you very much. I copied and pasted your revised formula into my sheet and it worked like a charm. But when I edited it to match, it didn't work. I must have done something stupid somewhere.



Hi. Implicit parenthesis is a source of a lot of errors. And SMath isn't the only one that have this problem. Wolfram Mathematica, in traditional form have it too. But you can copy the expressions in SMath and paste it as text to see what happen:

g(y.1):78*'ft*int(f.c(x,y.1/'in),x,x.0/'in,y.0/'in)+92.25*'in*int(f.c(x,y.1/'in),x,x.1/'in,y.1/'in)

g(y.1):78*'ft*int(f.c(x,y.1/'in),x+92.25*'in*int(f.c(x,y.1/'in),x,x.1/'in,y.1/'in),x.0/'in,y.0/'in)

Also can show it:

Clipboard02.jpg

This is: your differential it's wrong.

Best regards.
Alvaro.



Wow, this is very tricky one. I believe this is the source of all issues I have had so far. How can I prevent this from happening? Thank you.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений