Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages12>
Options
Go to last post Go to first unread
Offline Basile  
#1 Posted : 25 June 2016 01:13:55(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Hello,
I am getting the following:
smath error 35.JPG
Basile

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Razonar  
#2 Posted : 25 June 2016 03:39:49(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi Basile.

That's is the expected way to work with smath.

To get the value of X.C you must to call the function after defining X.C with X.C(f)=

Best regards.

Alvaro.
Offline Basile  
#3 Posted : 25 June 2016 04:34:38(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Alvaro,
Look to the left the of X.C , the X.L
Should behave the same?

Basile
Offline Razonar  
#4 Posted : 25 June 2016 05:02:38(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Basile Go to Quoted Post
Alvaro,
Look to the left the of X.C , the X.L
Should behave the same?

Basile


Depending which version, it could be. I guess that must to be an election from author, this is, if eval functions in that way. The "not evaluation" option, as the attached picture, it's ok for me.

Best regards.
XLXC.gif
Alvaro.

Offline Basile  
#5 Posted : 25 June 2016 05:13:38(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
i am using
smath error 38.JPG
Basile
Offline Jean Giraud  
#6 Posted : 25 June 2016 06:46:19(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Same problem as before: you have no circuit, then no LC project.
The only thing you can do is calculate the resonance frequency: 'fo'
Then plot it as sin(fo)
Offline Basile  
#7 Posted : 25 June 2016 15:41:27(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Jean,

I am calculating the reactance of the inductor and the capacitor at a frequency f.

Basile
Offline Jean Giraud  
#8 Posted : 25 June 2016 19:53:44(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
In my times, pure L, C were strictly imaginary. Just by themselves they don't have much use
whereas there is no such thing as pure L , pure C. They both have physical resistiviy.
Offline Basile  
#9 Posted : 26 June 2016 00:30:56(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Jean,

You are right that:
X.L=jωL
and
X.C=-j(1/ωC)
and the magnitude is that I calculate.

You can simply consider ideal elements without the loss resistance.

Basile
Offline Razonar  
#10 Posted : 26 June 2016 03:51:28(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi Basile. That's isn't.

Correct XL and XC (reactances) are without j, as in your worksheets.

ZL and ZC (impedances) are with j.

Actually the total impedance is Z = R + jX, where X = XL + XC is the total reactance.

Best regards.

Alvaro.
Offline Basile  
#11 Posted : 26 June 2016 06:35:47(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Alvaro,

You are confusing things.
What you say are correct but have to do nothing to do with the question.
X.L, X.C are reactance (with j or without j)

Z is impedance of R and X.

Basile
Offline Razonar  
#12 Posted : 26 June 2016 07:03:00(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Basile Go to Quoted Post
Alvaro,

You are confusing things.
What you say are correct but have to do nothing to do with the question.
X.L, X.C are reactance (with j or without j)

Z is impedance of R and X.

Basile


Hi Basile. I don't confusing. Reactances ( https://en.wikipedia.org/wiki/Electrical_reactance ) are reals and impedances ( https://en.wikipedia.org/wiki/Electrical_impedance ) are complexes. So X.L, X.C can't have j.

About the numerical evaluation for a function, check this old post: http://en.smath.info/for...nction-as-a-program.aspx

In X.L, X.C definitions as functions, f must to be a local variable. X.L(f) -> (symb evaluation) must to set the answer with "f", not with "100 Hz". And the numerical evaluation X.L(f) = must to be in red, as f as local variable isn't defined.

As a choice of the program writer, and what you can see in the last post of the above referenced, you can set all the local variables as globals with f(x) = 1*(line ... ). Actually I'm not comfortable with that behavoir, but is the choice of Andrei.

Best regards.

Alvaro.
Offline Jean Giraud  
#13 Posted : 26 June 2016 08:01:29(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Just like this Basile, for a family of "C's"
at a fixed frequency 8 the magenta line.
On the plot, 'f' => 'x'.

Forum Basile Rc.gif
Offline Basile  
#14 Posted : 26 June 2016 20:59:10(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Jean,
Yes, I can plot X.C(f) and X.L(f) but if I try to plot the difference or take the aritmetic difference does not work.
Please see figure and figure in post #1 on top, if it helps.
smath error 39.JPG
Basile
Offline Jean Giraud  
#15 Posted : 27 June 2016 01:42:21(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Basile, let's make it clear on three points:

1. You have no work sheet, then there is no project [no help].
2. Read this link again https://en.wikipedia.org/wiki/LC_circuit
to help you start onstruct a project.
3. Those gyzmas: they do nothing circuit wise.

Jean

Forum Basile NO Project.gif
Offline Basile  
#16 Posted : 27 June 2016 06:00:18(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Jean,
Attached please find the file.
test resonance.sm (8kb) downloaded 22 time(s).
Basile
Offline Jean Giraud  
#17 Posted : 27 June 2016 16:15:28(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... project done Basile.

Jean

Circuit [LC].sm (19kb) downloaded 20 time(s).
Offline Jean Giraud  
#18 Posted : 27 June 2016 16:17:47(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Note that I have removed the unit system because
"Units don't match" error mesage ... so: zap !
Offline Basile  
#19 Posted : 27 June 2016 17:03:08(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Jean,

"why units do not match? Are they both Ω?"

Basile
PS: Thank you for the discussion.
Offline CBG  
#20 Posted : 27 June 2016 19:54:29(UTC)
CBG


Rank: Advanced Member

Groups: Registered
Joined: 14/10/2015(UTC)
Posts: 308

Was thanked: 77 time(s) in 58 post(s)
Redefining subtraction or function.



Test_resonance.png


Best Regards

Carlos

test resonance_CBG.sm (11kb) downloaded 14 time(s).
Users browsing this topic
Guest
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.