How Can I Create and Connect Circuit Elements in Mathematica Using Graphics?

AI Thread Summary
Creating circuit elements in Mathematica using graphics can be challenging for beginners. Users are attempting to draw components like resistors and capacitors using the Graphics and Line functions but are struggling with connecting these elements. The "Show" command is highlighted as a useful tool for displaying multiple graphics simultaneously. There is a suggestion to consider drawing elements in another program and importing them, but this is not feasible for the homework assignment. Overall, users are finding the process tedious and are seeking guidance on effectively combining their graphic elements.
Michaud12
Messages
18
Reaction score
0

Homework Statement


I need to find a away to make circuit elements (resister capacitor etec) in Mathematica using lines graphic, and I am new to this so I am not really sure how...and i need to connect the elements to make a circuit.


i think i made a resister

Graphics[Line[{{0, 0}, {1, 0}, {2, -1}, {3, 1}, {4, -1}, {5,
1}, {6, -1}, {7, 0}, {8, 0}}]]

but I having issues with the rest..
 
Physics news on Phys.org
several hours later and I've made no progress, i can't even join two lines to make 1 side of the capacitor. If ANYONE has the slightest idea how to help, i really need it
 
The "Show" command will display multiple graphics entities at the same time, which may come in handy. Mathematica is not the easiest tool to use here, for sure. Would it be possible to draw the circuit elements in another program and import the image into Mathematica?
 
Mapes said:
The "Show" command will display multiple graphics entities at the same time, which may come in handy. Mathematica is not the easiest tool to use here, for sure. Would it be possible to draw the circuit elements in another program and import the image into Mathematica?

no this is the last homework in a mathematica class. so we need to use it for the whole thing. The other assignments seemed useful but this one one pointless
 
making the capacitor symbol is really giving me trouble
this is what i have
Cap1 = Graphics@Line[{{1, 0}, {1, .5}}] gave me a vertical line
Cap2 = Graphics@Line[{{0, .25}, {1, .25}}] gave me horizontal line
Capleft = Show[Cap1, Cap2] gave me half of the capacitor logo
then i rotated that 180 degrees to get the other side, then i tried show to combine them but it won't let me
 
Last edited:
What does your complete code look like?
 
i had to break each element into sections but i manged to do it just using the line graphic, it was a pain the the *** tho
 
Back
Top