Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Simple MathCAD problem

Status
Not open for further replies.

max0412

Full Member level 5
Full Member level 5
Joined
Oct 26, 2003
Messages
251
Helped
34
Reputation
66
Reaction score
5
Trophy points
1,298
Activity points
1,999
mathcad this value must be a scalar

If you have a list of numbers that are to be used in the same equation numerous times.Is there a way mathcad can do it without typing in the same equation a hundred times?

For example say I'm trying to find a parallel resistor value one resistor in the pair stays the same R1. The other resistor is varied R2. The parallel combination Rp is

Rp = R1+ R2 / R1 * R2

If I have a hundred values for R2 how can I get mathCAD to plot the results in table form. Without having to create a new variable for R2 and rewrite the equation every time.

The range function doesn't work they aren't scalar values.
 

this value must be a scalar mathcad

Hello max0412,

Have you tried to make a function R2(x), with x as range variable?
Code:
R1 := 100Ohms
x := 1,1.1..100
R2(x) := 100Ohms*x

Rp := R1*R2/(R1+R2)

Mathcad should now be able to plot the values of Rp as a table.

MagixD
 

    max0412

    Points: 2
    Helpful Answer Positive Rating
mathcad this value must be scalar

That doesn’t work.

My R2 values are like this

4.13k,5.8k,6.2k......... there are about 40 of these.

Using them as a range variable MathCAD squawks this value must be scalar.
I would like to be able to write the formula once, have MathCAD go through each R2 value and plug it in the formula and produce the correct result for Rp in table form like this.

R2 RP
4.13K RESULT
5.8K RESULT
6.2K RESULT
.
.
.

Nevermind I found out how to do it.

For anyone else who ever has to do something similar here is how you do it.

Code:
http://www.spsu.edu/ecet/kdavis/Mathcad%20-%20Input%20Output%20Tables.pdf
 

parallel resistors mathcad

Here is your file, just add more Ri as you need and enjoy it. I changed extension to jpg in order to be able to place it here. Download and then change the extension back to mcd.

RF-OM
 

    max0412

    Points: 2
    Helpful Answer Positive Rating
mathcad plot to table

i can't see the file !! rparallel.jpg
 

this value must be a matrix mathcad

may be it's too late, but it might be helpful for others.

This is a Mathcad 11 sheet that will ask for a desired value of a resistors,
It will iterate combinations of two typical/common-valued resistors,
then it will return the combination having the nearest equivalent resistance to the desired resistor value.
 

    max0412

    Points: 2
    Helpful Answer Positive Rating
mathcad range

If you have a txt file of numbers, you can take it in mathcad matrix with function readprn. and out to txt file with function wtiteprn. If you want to make one operation for 100 times, you can use matrix calculation or cycle "For".
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top